You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
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:
committed by
Zane van Iperen
parent
029598bd4a
commit
4c03928f4d
@@ -564,9 +564,8 @@ static int set_context_streams_from_tracks(AVFormatContext *s)
|
|||||||
/* Copy stream information */
|
/* Copy stream information */
|
||||||
asset_stream = avformat_new_stream(s, NULL);
|
asset_stream = avformat_new_stream(s, NULL);
|
||||||
if (!asset_stream) {
|
if (!asset_stream) {
|
||||||
ret = AVERROR(ENOMEM);
|
|
||||||
av_log(s, AV_LOG_ERROR, "Could not create stream\n");
|
av_log(s, AV_LOG_ERROR, "Could not create stream\n");
|
||||||
break;
|
return AVERROR(ENOMEM);
|
||||||
}
|
}
|
||||||
asset_stream->id = i;
|
asset_stream->id = i;
|
||||||
ret = avcodec_parameters_copy(asset_stream->codecpar, first_resource_stream->codecpar);
|
ret = avcodec_parameters_copy(asset_stream->codecpar, first_resource_stream->codecpar);
|
||||||
|
Reference in New Issue
Block a user