Skip to content
Snippets Groups Projects
Commit f631c328 authored by James Almer's avatar James Almer
Browse files

avcodec/decode: copy the output parameters from the last bsf in the chain back...

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

Certain AVCodecParameters, like the contents of the extradata, may be changed
by the init() function of any of the bitstream filters in the chain.

Signed-off-by: default avatarJames Almer <jamrial@gmail.com>
parent 94fe138d
No related branches found
No related tags found
No related merge requests found
......@@ -281,6 +281,10 @@ int ff_decode_bsfs_init(AVCodecContext *avctx)
bsfs_str++;
}
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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment