avcodec/exr: Check for duplicate channel index