diff options
author | Pierre-Anthony Lemieux <pal@palemieux.com> | 2022-01-02 09:22:26 -0800 |
---|---|---|
committer | Zane van Iperen <zane@zanevaniperen.com> | 2022-01-04 19:40:32 +1000 |
commit | 311ea9c529117fb8e38abd6ca7e81782b6b21257 (patch) | |
tree | c0099737df672a42fd8f6eb8bc76cfd0665e29a4 /libavformat | |
parent | b01ac2d86343a7dbfdee3f9f54065d8aefa22838 (diff) | |
download | ffmpeg-311ea9c529117fb8e38abd6ca7e81782b6b21257.tar.gz |
avformat/imf: Fix error handling in set_context_streams_from_tracks()
Signed-off-by: Pierre-Anthony Lemieux <pal@palemieux.com>
Signed-off-by: Zane van Iperen <zane@zanevaniperen.com>
(cherry picked from commit 4c03928f4db4dab5ebed91c281e67f678cd3349d)
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/imfdec.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libavformat/imfdec.c b/libavformat/imfdec.c index 228ba494ae..503c8a2659 100644 --- a/libavformat/imfdec.c +++ b/libavformat/imfdec.c @@ -564,9 +564,8 @@ static int set_context_streams_from_tracks(AVFormatContext *s) /* Copy stream information */ asset_stream = avformat_new_stream(s, NULL); if (!asset_stream) { - ret = AVERROR(ENOMEM); av_log(s, AV_LOG_ERROR, "Could not create stream\n"); - break; + return AVERROR(ENOMEM); } asset_stream->id = i; ret = avcodec_parameters_copy(asset_stream->codecpar, first_resource_stream->codecpar); |