1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

decode: copy the output parameters from the last bsf in the chain back to the AVCodecContext

Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
James Almer 2018-07-27 13:29:03 -03:00
parent ad99cbc9b3
commit 662558f985

View File

@ -221,6 +221,10 @@ int ff_decode_bsfs_init(AVCodecContext *avctx)
goto fail;
}
ret = avcodec_parameters_to_context(avctx, s->bsfs[s->nb_bsfs - 1]->par_out);
if (ret < 0)
return ret;
return 0;
fail:
ff_decode_bsfs_uninit(avctx);