avcodec/utils: check that extended data has been set correctly instead of forcing...