mirror of https://git.ffmpeg.org/ffmpeg.git
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>
This commit is contained in:
parent
029598bd4a
commit
4c03928f4d
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue