[FFmpeg-cvslog] decode: copy the output parameters from the last bsf in the chain back to the AVCodecContext

James Almer git at videolan.org
Tue Sep 11 19:33:47 EEST 2018


ffmpeg | branch: master | James Almer <jamrial at gmail.com> | Fri Jul 27 13:29:03 2018 -0300| [662558f985f50834eebe82d6b6854c66f33ab320] | committer: James Almer

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

Signed-off-by: James Almer <jamrial at gmail.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=662558f985f50834eebe82d6b6854c66f33ab320
---

 libavcodec/decode.c | 4 ++++
 1 file changed, 4 insertions(+)

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);



More information about the ffmpeg-cvslog mailing list