summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Almer <jamrial@gmail.com>2018-07-27 13:29:03 -0300
committerJames Almer <jamrial@gmail.com>2018-08-17 14:33:44 -0300
commit662558f985f50834eebe82d6b6854c66f33ab320 (patch)
treeade54964b131f12dc0f5d32fc95593bba385afaf
parentad99cbc9b3f4e0fae5c9bc5291d422d477dbf069 (diff)
decode: copy the output parameters from the last bsf in the chain back to the AVCodecContext
Signed-off-by: James Almer <jamrial@gmail.com>
-rw-r--r--libavcodec/decode.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libavcodec/decode.c b/libavcodec/decode.c
index 2dab7f2a71..d10a2c8b58 100644
--- a/libavcodec/decode.c
+++ b/libavcodec/decode.c
@@ -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);