diff mbox

[FFmpeg-devel,v2,4/7] avformat/utils: Make find_stream_info get side data from codec context

Message ID 20191219164327.9900-5-nicolas.gaullier@cji.paris
State Accepted
Headers show

Commit Message

Nicolas Gaullier Dec. 19, 2019, 4:43 p.m. UTC
This will allow probing input coded side data, and also forwarding them to the output.
---
 libavformat/utils.c | 3 +++
 1 file changed, 3 insertions(+)
diff mbox

Patch

diff --git a/libavformat/utils.c b/libavformat/utils.c
index fe92ad4a1d..f7c949f0a1 100644
--- a/libavformat/utils.c
+++ b/libavformat/utils.c
@@ -4137,6 +4137,9 @@  FF_ENABLE_DEPRECATION_WARNINGS
             ret = avcodec_parameters_from_context(st->codecpar, st->internal->avctx);
             if (ret < 0)
                 goto find_stream_info_err;
+            ret = av_stream_add_coded_side_data(st, st->internal->avctx);
+            if (ret < 0)
+                goto find_stream_info_err;
 #if FF_API_LOWRES
             // The decoder might reduce the video size by the lowres factor.
             if (st->internal->avctx->lowres && orig_w) {