summaryrefslogtreecommitdiffstats
path: root/chromium/third_party/ffmpeg/libavfilter/lavfutils.c
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/third_party/ffmpeg/libavfilter/lavfutils.c')
-rw-r--r--chromium/third_party/ffmpeg/libavfilter/lavfutils.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/chromium/third_party/ffmpeg/libavfilter/lavfutils.c b/chromium/third_party/ffmpeg/libavfilter/lavfutils.c
index 58d98cfdb68..93f1ef331d0 100644
--- a/chromium/third_party/ffmpeg/libavfilter/lavfutils.c
+++ b/chromium/third_party/ffmpeg/libavfilter/lavfutils.c
@@ -44,6 +44,11 @@ int ff_load_image(uint8_t *data[4], int linesize[4],
return ret;
}
+ if ((ret = avformat_find_stream_info(format_ctx, NULL)) < 0) {
+ av_log(log_ctx, AV_LOG_ERROR, "Find stream info failed\n");
+ return ret;
+ }
+
codec_ctx = format_ctx->streams[0]->codec;
codec = avcodec_find_decoder(codec_ctx->codec_id);
if (!codec) {