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 62551407A0 for ; Sun, 30 Jan 2022 22:01:34 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 0E0E668B160; Mon, 31 Jan 2022 00:01:21 +0200 (EET) Received: from mail-pf1-f170.google.com (mail-pf1-f170.google.com [209.85.210.170]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 0444868A4CD for ; Mon, 31 Jan 2022 00:01:15 +0200 (EET) Received: by mail-pf1-f170.google.com with SMTP id i30so11290614pfk.8 for ; Sun, 30 Jan 2022 14:01:14 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=wvTq/PYFQnknuBJnUZ6bW7yHifGck/aHCJgt09gVM4M=; b=SM3bSejoMlGTF0rhjcX7xjOFuKjpS1n191gNgtv0ika8CHbkZi4efA1/qB7pbj8Xup ynvR7xy2wJzlyvyo4nqC3fhIiZ87r1iBoU4G+MVprO9y00AAfJ4XeCCFjgZ9kxPlCxtS VIZzJ0RH3Z+dfanqFt5H/K2WyzWO+/uPFaPPhaOY7YrD9L3Hn1CeHet/HP6LQaupg7kM mBkJZQo7ZI6XnuFyWeZFtVdrWD2SC+1nCSsFqJBP8qnCSP2USBlIYPWOm4dVMWluSA5X 8g5gH8VikOwsx8adfCZ+VqUHYKoi34KSFLpAhZLaGglGMMF2OtHVeunQ+inDy2QVUHQi 43/A== X-Gm-Message-State: AOAM532OflJXxOPsMFnHeoecfQPLCQRqinI0OHNU1e4Iz8yDOtqQt5Y2 DojObzByMUlGJLe7Z1J4vEicTF32hho= X-Google-Smtp-Source: ABdhPJwldKbX2Xt9kCRNVI9oo3A5Ikh9wHjWHMORVNX7sDkODhVPBykDmxgLNkQlj/wYN773P11/wA== X-Received: by 2002:a62:7650:: with SMTP id r77mr17541855pfc.85.1643580072889; Sun, 30 Jan 2022 14:01:12 -0800 (PST) Received: from localhost (76-14-89-2.sf-cable.astound.net. [76.14.89.2]) by smtp.gmail.com with ESMTPSA id r12sm23571203pgn.6.2022.01.30.14.01.11 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Sun, 30 Jan 2022 14:01:12 -0800 (PST) Received: by localhost (sSMTP sendmail emulation); Sun, 30 Jan 2022 14:01:01 -0800 From: pal@sandflow.com To: ffmpeg-devel@ffmpeg.org Date: Sun, 30 Jan 2022 14:00:53 -0800 Message-Id: <20220130220055.2595-2-pal@sandflow.com> X-Mailer: git-send-email 2.35.0.windows.1 In-Reply-To: <20220130220055.2595-1-pal@sandflow.com> References: <20220130220055.2595-1-pal@sandflow.com> MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH v1 2/4] avformat/imf: fix missing error reporting when opening resources 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 Cc: Pierre-Anthony Lemieux 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: From: Pierre-Anthony Lemieux --- libavformat/imfdec.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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); -- 2.17.1 _______________________________________________ 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".