diff mbox series

[FFmpeg-devel,v6,2/5] avformat/utils: Make find_stream_info get side data from codec context

Message ID 20200113185459.8908-3-nicolas.gaullier@cji.paris
State Accepted
Headers show
Series Fix mpeg1/2 stream copy
Related show


Context Check Description
andriy/ffmpeg-patchwork pending
andriy/ffmpeg-patchwork success Applied patch
andriy/ffmpeg-patchwork success Configure finished
andriy/ffmpeg-patchwork success Make finished
andriy/ffmpeg-patchwork success Make fate finished

Commit Message

Gaullier Nicolas Jan. 13, 2020, 6:54 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 series


diff --git a/libavformat/utils.c b/libavformat/utils.c
index 3270d971c6..ddc36cce1c 100644
--- a/libavformat/utils.c
+++ b/libavformat/utils.c
             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;
             // The decoder might reduce the video size by the lowres factor.
             if (st->internal->avctx->lowres && orig_w) {