From patchwork Sat Sep 19 16:35:58 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andreas Rheinhardt X-Patchwork-Id: 22494 Return-Path: X-Original-To: patchwork@ffaux-bg.ffmpeg.org Delivered-To: patchwork@ffaux-bg.ffmpeg.org Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org [79.124.17.100]) by ffaux.localdomain (Postfix) with ESMTP id 04AEE44A83E for ; Sat, 19 Sep 2020 19:37:34 +0300 (EEST) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id DFC8768B877; Sat, 19 Sep 2020 19:37:33 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail-wm1-f67.google.com (mail-wm1-f67.google.com [209.85.128.67]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id DA55E68B716 for ; Sat, 19 Sep 2020 19:37:21 +0300 (EEST) Received: by mail-wm1-f67.google.com with SMTP id z9so8462329wmk.1 for ; Sat, 19 Sep 2020 09:37:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=gKgdld8t02vCOtJdqO+FcgBM6sQ9sCgOuLsgMA0cEVM=; b=ZWZxd5JMjioj2wa4HczT2pUcCjnzH9l4zAhQCTWHemqBGGwZNqTsIhkOVgawFP0Chc 2Hl/Ewfo/RMbYFqqHaKzugKBNoJ3NEMZRvpz3VU+OXMA/Z8CVzxNdZ/qnJQA6RnO8HCg ax/4uBtfbRI6WIzCPQzZTlaiXNDoLtcasUHl8X57WpQ/+VNHrXQk7oBWGmbl3q5ud4pK 3ZVxIQWlVCpbEOOs7KopOo5goeXYxwdbuHbOfNDAFJ8ODRqhPOibLgyL+GZCqLtxkTJ4 oU0PkkohyPrXltvb3PIi/WGExQZ+HhWiDQuNtRF59VrEgiXuGbyYuaKjAY5XJG3HseWC QqNw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=gKgdld8t02vCOtJdqO+FcgBM6sQ9sCgOuLsgMA0cEVM=; b=thv/N8AM2xxMpeRcvXje339nZYxeE/ZGlcNMGEXbGcW+emsHxt7P+MdP5El7gBUH3s AdbfHSyz3OXo+kXrpjNdoiLn+x/WoCwiaVs1JfWIHAQGat3VpSpQ4s9uVAHUCTeAdMpx diqloBDyEjiFJHlktS/YLJtONry9teQkrKsVfDHw3m3qv19Im9pVPyi0v8Nr0GP3+Vh8 RiT78oXgmw4FIdotahxq0JlXsC22GJxrkxJzWCyAj7ulWUyXURLCCw+P386p8ynhBlhg sCToTPQUQbnqKHsuZPUsqYt08UYoLPwQTYFWsyDAaCskV8Mt3eHoR/UHMxSK9Do5mXp3 OR2A== X-Gm-Message-State: AOAM530vVz/xzDAam750eRr9WcXb+XMmlO/L77tKUa/0Xx0Evyr0gIxZ BBtONgjfa1//z77/Tt47IFZgVxN9KAk= X-Google-Smtp-Source: ABdhPJz33as6xPva5c8R5fA54ZSso67DgLVF7EtIEBKzfIq5Zwplti+6YtYetx0sxoA3KIKmzh6XZA== X-Received: by 2002:a7b:c453:: with SMTP id l19mr20474116wmi.163.1600533441094; Sat, 19 Sep 2020 09:37:21 -0700 (PDT) Received: from sblaptop.fritz.box (ipbcc1fb0f.dynamic.kabel-deutschland.de. [188.193.251.15]) by smtp.gmail.com with ESMTPSA id d5sm12451137wrb.28.2020.09.19.09.37.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 19 Sep 2020 09:37:20 -0700 (PDT) From: Andreas Rheinhardt To: ffmpeg-devel@ffmpeg.org Date: Sat, 19 Sep 2020 18:35:58 +0200 Message-Id: <20200919163610.1099233-9-andreas.rheinhardt@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200919163610.1099233-1-andreas.rheinhardt@gmail.com> References: <20200919163610.1099233-1-andreas.rheinhardt@gmail.com> MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH 09/21] avformat/dashdec: Check allocation of AVProgram X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.20 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: Andreas Rheinhardt Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Signed-off-by: Andreas Rheinhardt --- What do we need this program for anyway? What sense does it make to create a single program containing all streams? libavformat/dashdec.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libavformat/dashdec.c b/libavformat/dashdec.c index 55212661be..4f87ef981b 100644 --- a/libavformat/dashdec.c +++ b/libavformat/dashdec.c @@ -2137,6 +2137,7 @@ static int dash_read_header(AVFormatContext *s) AVProgram *program; program = av_new_program(s, 0); if (!program) { + ret = AVERROR(ENOMEM); goto fail; }