Commit 662558f9 authored by James Almer's avatar James Almer

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

Signed-off-by: 's avatarJames Almer <jamrial@gmail.com>
parent ad99cbc9
...@@ -221,6 +221,10 @@ int ff_decode_bsfs_init(AVCodecContext *avctx) ...@@ -221,6 +221,10 @@ int ff_decode_bsfs_init(AVCodecContext *avctx)
goto fail; goto fail;
} }
ret = avcodec_parameters_to_context(avctx, s->bsfs[s->nb_bsfs - 1]->par_out);
if (ret < 0)
return ret;
return 0; return 0;
fail: fail:
ff_decode_bsfs_uninit(avctx); ff_decode_bsfs_uninit(avctx);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment