From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org [79.124.17.100]) by master.gitmailbox.com (Postfix) with ESMTP id E00DD410E7 for ; Mon, 3 Jan 2022 11:34:22 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 64EFA68AF12; Mon, 3 Jan 2022 13:34:21 +0200 (EET) Received: from out2.migadu.com (out2.migadu.com [188.165.223.204]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 8030D688093 for ; Mon, 3 Jan 2022 13:34:19 +0200 (EET) X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=zanevaniperen.com; s=key1; t=1641209658; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=tcGqa1qU6X0GWZW+LsHSP99KZdR8pxIorQeBQ/RB5gM=; b=koWV2YcXM7LDOH6T7ZeZRF9dn6UnCETRW7aawSVZ1tHnl4w6H1Vp6+Cg/XR72HcUdUJLUh XIJ5XbTqCatsjdpchEIBr7q7PL6Mgt8/v5NqYkfDp8D5KqMOZH1Ucms30jWXktl2RBVcWD KmSJ91XPdm2LL6CWoz5NAgPhwOk/3II3dCrVfLy/uvkKW/fbKh9uFUxui43xsfaNlcQMqj ep2rz0Ql86NzM27TW+67T3lp05CRxAtzdMqjWqLsdFrEYBCiDTh+jCdPMNG9oG66Lh1mC9 z+clMjeiAfbNORqz72RBESsMGaWehMIVPjwFWD1m64hLND1+6y0VZntSUg2KSw== From: Zane van Iperen To: ffmpeg-devel@ffmpeg.org Date: Mon, 03 Jan 2022 21:34:16 +1000 Message-ID: <2903392.DXXdxUZSOe@morningstar> In-Reply-To: <20220102172226.12557-1-pal@sandflow.com> References: <20220102172226.12557-1-pal@sandflow.com> MIME-Version: 1.0 X-Migadu-Flow: FLOW_OUT X-Migadu-Auth-User: zanevaniperen.com Subject: Re: [FFmpeg-devel] [PATCH v1] avformat/imf: Fix error handling in set_context_streams_from_tracks() X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: FFmpeg development discussions and patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: FFmpeg development discussions and patches Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Archived-At: List-Archive: List-Post: On Monday, 3 January 2022 3:22:26 AM AEST pal@sandflow.com wrote: > From: Pierre-Anthony Lemieux > > Signed-off-by: Pierre-Anthony Lemieux > --- > libavformat/imfdec.c | 3 +-- > 1 file changed, 1 insertion(+), 2 deletions(-) > > diff --git a/libavformat/imfdec.c b/libavformat/imfdec.c > index f17064cfcd..da8c6cddea 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); > lgtm _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".