Message ID | 20220130220055.2595-2-pal@sandflow.com |
---|---|
State | New |
Headers | show |
Series | [FFmpeg-devel,v1,1/4] avformat/imf: open resources only when first needed | expand |
Context | Check | Description |
---|---|---|
andriy/make_x86 | success | Make finished |
andriy/make_fate_x86 | success | Make fate finished |
andriy/make_ppc | success | Make finished |
andriy/make_fate_ppc | success | Make fate finished |
diff --git a/libavformat/imfdec.c b/libavformat/imfdec.c index d03dcd623d..6b50b582f6 100644 --- a/libavformat/imfdec.c +++ b/libavformat/imfdec.c @@ -550,7 +550,9 @@ static int set_context_streams_from_tracks(AVFormatContext *s) AVStream *first_resource_stream; /* Open the first resource of the track to get stream information */ - open_track_resource_context(s, &c->tracks[i]->resources[0]); + ret = open_track_resource_context(s, &c->tracks[i]->resources[0]); + if (ret) + return ret; first_resource_stream = c->tracks[i]->resources[0].ctx->streams[0]; av_log(s, AV_LOG_DEBUG, "Open the first resource of track %d\n", c->tracks[i]->index);
From: Pierre-Anthony Lemieux <pal@palemieux.com> --- libavformat/imfdec.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)