No testcase with unmodified source is known
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
... | ... |
@@ -44,6 +44,11 @@ int ff_load_image(uint8_t *data[4], int linesize[4], |
44 | 44 |
return ret; |
45 | 45 |
} |
46 | 46 |
|
47 |
+ if ((ret = avformat_find_stream_info(format_ctx, NULL)) < 0) { |
|
48 |
+ av_log(log_ctx, AV_LOG_ERROR, "Find stream info failed\n"); |
|
49 |
+ return ret; |
|
50 |
+ } |
|
51 |
+ |
|
47 | 52 |
codec_ctx = format_ctx->streams[0]->codec; |
48 | 53 |
codec = avcodec_find_decoder(codec_ctx->codec_id); |
49 | 54 |
if (!codec) { |