From patchwork Mon May 16 01:16:03 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Niedermayer X-Patchwork-Id: 35785 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6a20:a885:b0:7f:4be2:bd17 with SMTP id ca5csp1323678pzb; Sun, 15 May 2022 18:16:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyhS4P8t61Euky5/p0f02Q6HtgmsKbddg98/mFgZpJaMunTFCtjQTusaEsgqF6NDuCJoMma X-Received: by 2002:a05:6402:3485:b0:427:cde4:2097 with SMTP id v5-20020a056402348500b00427cde42097mr10804217edc.264.1652663779482; Sun, 15 May 2022 18:16:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652663779; cv=none; d=google.com; s=arc-20160816; b=jSOMf4Y3rC9V1Vn4i2SX9yWvcEofkvezTxpjw+dcxpzapYscBFHu8sGiyp9W8Vkx4L s2VVeSvBwLgDuVEhZ9a67xEQfXKzTLl6JouqRfmsWzp0+ydNOszQr+m3jT4SX1vVMwoQ 7Q8NBjMuTq89g35+XD1KBfOjbNY7Gzo/DZ9+wbBP3GIRgCodY2EhE/eBucoCT7EpMJ8y 3k0uflllrUYAdiDb2a7aCVfC7usBoVpoGnGxntkr/2o+Ly2lX+sgvbH0e9skbXcOqskH 8UQkdyFHzsjAR1RTG8HVYRl+a0TP/lcq/MkKXBu23xFBcYUMJ0qRAbHKEHiGLdCuMGCZ J+9w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version:reply-to :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:message-id:date:to:from:delivered-to; bh=uHHP4Xt06d+JMdutGyXvAI1FO8l3sMalTMYtracT2Tk=; b=K3wgBURG0LbwyLA5ggX88b4lJUOAevT6cePqrkpm0RPhJcfzlQMSYGdsK1KXY3BbaO G/HdbOr4E3pD3ZqxinTcZimSWrWA+KLX5l+cZXBO0Bfc8YfAelVbfHbcefwpordo+1FF wX91V0fHVxk98sCvdyk6LPF2ibh/qRWUTuzpoTZTX1o5cLE7CspO5M7sDfxjpts6id/+ W545PMjMuRwDflSlrMyND3HlKdUheVXadm8ahyExRCrDF11yRWfpnI+JfQesJ55/xrJZ iFa29OOVcThgsY7av1RPEwRzHhk6dskOXIpHO+/Jjs8+eY0V/5DGAb2v7iISU7JZzQZK /m0w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) smtp.mailfrom=ffmpeg-devel-bounces@ffmpeg.org Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id cr19-20020a170906d55300b006e8c745f302si8882756ejc.314.2022.05.15.18.16.18; Sun, 15 May 2022 18:16:19 -0700 (PDT) Received-SPF: pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) client-ip=79.124.17.100; Authentication-Results: mx.google.com; spf=pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) smtp.mailfrom=ffmpeg-devel-bounces@ffmpeg.org Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 5248D68B4F8; Mon, 16 May 2022 04:16:15 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from vie01a-dmta-at02-2.mx.upcmail.net (vie01a-dmta-at02-2.mx.upcmail.net [62.179.121.149]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 69F6568B437 for ; Mon, 16 May 2022 04:16:08 +0300 (EEST) Received: from [172.31.216.235] (helo=vie01a-pemc-psmtp-pe12.mail.upcmail.net) by vie01a-dmta-at02.mx.upcmail.net with esmtp (Exim 4.92) (envelope-from ) id 1nqPLC-0007g1-PB for ffmpeg-devel@ffmpeg.org; Mon, 16 May 2022 03:16:06 +0200 Received: from ren-mail-psmtp-mg02. ([80.109.253.241]) by vie01a-pemc-psmtp-pe12.mail.upcmail.net with ESMTP id qPK1nCse88s8UqPLCntbBH; Mon, 16 May 2022 03:16:06 +0200 Received: from localhost ([213.47.68.29]) by ren-mail-psmtp-mg02. with ESMTP id qPLBnOEXY8eSWqPLBnsHAw; Mon, 16 May 2022 03:16:06 +0200 X-Env-Mailfrom: michael@niedermayer.cc X-Env-Rcptto: ffmpeg-devel@ffmpeg.org X-SourceIP: 213.47.68.29 X-CNFS-Analysis: v=2.4 cv=KKE5sHJo c=1 sm=1 tr=0 ts=6281a5d6 a=2hcxjKEKjp0CzLx6oWAm4g==:117 a=2hcxjKEKjp0CzLx6oWAm4g==:17 a=MKtGQD3n3ToA:10 a=1oJP67jkp3AA:10 a=GEAsPZ9sns4A:10 a=1lKYNhKJWht_5WxR-DEA:9 From: Michael Niedermayer To: FFmpeg development discussions and patches Date: Mon, 16 May 2022 03:16:03 +0200 Message-Id: <20220516011605.18792-1-michael@niedermayer.cc> X-Mailer: git-send-email 2.17.1 X-CMAE-Envelope: MS4wfD4cYHGzvTHRiBpZl+ljiM4JaHfv1/zeS3bizGkiRao2p8fB3pmrw0Pdb+z8FDoO5wUDxxfwFfAzdUcdQsxoLSZr2XMxPmKPYCfkcCJQYytWlf6ziDQu 1/giRQfYpskCD6DUwHHPFmRxHgfTL9cyqL+pP1oy9vxENYN+V5Ddt1iyNx6/czUm9N+VyIV3bWZfKg== Subject: [FFmpeg-devel] [PATCH 1/3] avformat/jpegxl_probe: Check init_get_bits8() for failure 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 MIME-Version: 1.0 Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" X-TUID: Vpcf1db6U1oh Fixes: missing error check Fixes: CID1504270 Signed-off-by: Michael Niedermayer --- libavformat/jpegxl_probe.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/libavformat/jpegxl_probe.c b/libavformat/jpegxl_probe.c index 9cd00da194..3de002f004 100644 --- a/libavformat/jpegxl_probe.c +++ b/libavformat/jpegxl_probe.c @@ -250,8 +250,11 @@ int ff_jpegxl_verify_codestream_header(const uint8_t *buf, int buflen) int xyb_encoded = 1, have_icc_profile = 0; uint32_t num_extra_channels; uint64_t extensions; + int ret; - init_get_bits8(gb, buf, buflen); + ret = init_get_bits8(gb, buf, buflen); + if (ret < 0) + return ret; if (jxl_bits(16) != FF_JPEGXL_CODESTREAM_SIGNATURE_LE) return -1; From patchwork Mon May 16 01:16:04 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Niedermayer X-Patchwork-Id: 35784 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6a20:a885:b0:7f:4be2:bd17 with SMTP id ca5csp1324343pzb; Sun, 15 May 2022 18:18:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzYaTYLr2BUpOPBApdBg/dvvbXSkmrDXE3RosiWy+84WKLj5VY7BHwxI/ILsaJFtWKgRKd1 X-Received: by 2002:aa7:cdc6:0:b0:426:3c4f:c2b8 with SMTP id h6-20020aa7cdc6000000b004263c4fc2b8mr10823871edw.348.1652663895762; Sun, 15 May 2022 18:18:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652663895; cv=none; d=google.com; s=arc-20160816; b=f+lmOOyNFaQAuNWfEQPo2lUt7SopxOmPmirqv6XGpxsEHsB9SXGeTiqyTSxs94HuAW s/YDHK54/8d853cF+RImrFR8N3o23rX1nC6vi8I4Dj7byV5du6mpx6G/bvYVVq5Snzjb vLTcPqRZYiS9gEzV43YddvlaXh9gv6WhbgBmNbToQYaxC4qulAbbMunkE4O0gPDNcXDN n1SZ5rngdhEXiHPVkl3hG9DHIEX2OvhPa6IiefZnYY/3N8yXBpxPHJDUa9nyBoQeI4a+ M6XdUzbHQB3ivtKzkzFptXr4KfabSdohVk+O/BhB2o18dbs0C+1mkxmSP1ZcScMD5xUM JgLA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version:reply-to :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:references:in-reply-to:message-id:date :to:from:delivered-to; bh=kCOejwSmtIcp6cROhlQOsl13Hc30mVIr/fIid5JEQho=; b=f0wms+hG65qIqBgs3I0m/p2aE6kA0Fh865yrIbvs9Y6psHM3k89XGbIKFwrVhNpE6/ si7yi7DnNGuq7cNPDPB98taaqUjWYqcuzhJN+fFFSzYu2rPJ5c3Z3BoEyH2jmzzK2OBL H+0Xf2MZWjbt3R+neKD2+lVUu/WKEsiW/I7X6xfZk2yPnOy6TCO6s/3m0Ctfxttbs8R/ UQL11kZ2XiSTQFdKeCm3Z/uAFY5M+PCECXpgNLdAtb6Efg0oJ97EF2D67JGA+oSuLiFC uL1rxoNRszsytDb89yTNKaLHDKpg03rH9rqtUg5lS+W512A8Fat+SW5aiPn2n+8JrCV3 bRpA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) smtp.mailfrom=ffmpeg-devel-bounces@ffmpeg.org Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id hv21-20020a17090760d500b006f518a02306si7822090ejc.642.2022.05.15.18.18.15; Sun, 15 May 2022 18:18:15 -0700 (PDT) Received-SPF: pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) client-ip=79.124.17.100; Authentication-Results: mx.google.com; spf=pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) smtp.mailfrom=ffmpeg-devel-bounces@ffmpeg.org Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 81EE068B4F9; Mon, 16 May 2022 04:18:13 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from vie01a-dmta-at01-1.mx.upcmail.net (vie01a-dmta-at01-1.mx.upcmail.net [62.179.121.145]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 4581468B500 for ; Mon, 16 May 2022 04:18:07 +0300 (EEST) Received: from [172.31.216.235] (helo=vie01a-pemc-psmtp-pe12.mail.upcmail.net) by vie01a-dmta-at01.mx.upcmail.net with esmtp (Exim 4.92) (envelope-from ) id 1nqPN8-002pG8-Hs for ffmpeg-devel@ffmpeg.org; Mon, 16 May 2022 03:18:06 +0200 Received: from ren-mail-psmtp-mg01. ([80.109.253.241]) by vie01a-pemc-psmtp-pe12.mail.upcmail.net with ESMTP id qPN8nCwaE8s8UqPN8ntbO1; Mon, 16 May 2022 03:18:06 +0200 Received: from localhost ([213.47.68.29]) by ren-mail-psmtp-mg01. with ESMTP id qPLCnBLLqOPqFqPLCnEW66; Mon, 16 May 2022 03:16:06 +0200 X-Env-Mailfrom: michael@niedermayer.cc X-Env-Rcptto: ffmpeg-devel@ffmpeg.org X-SourceIP: 213.47.68.29 X-CNFS-Analysis: v=2.4 cv=OcX7sjfY c=1 sm=1 tr=0 ts=6281a5d6 a=2hcxjKEKjp0CzLx6oWAm4g==:117 a=2hcxjKEKjp0CzLx6oWAm4g==:17 a=MKtGQD3n3ToA:10 a=1oJP67jkp3AA:10 a=GEAsPZ9sns4A:10 a=s-SmoVCtHytnRkX7i2wA:9 From: Michael Niedermayer To: FFmpeg development discussions and patches Date: Mon, 16 May 2022 03:16:04 +0200 Message-Id: <20220516011605.18792-2-michael@niedermayer.cc> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20220516011605.18792-1-michael@niedermayer.cc> References: <20220516011605.18792-1-michael@niedermayer.cc> X-CMAE-Envelope: MS4wfN8RKDrWXy71pqQBYhei5ymiZvXzP9TUL5o1R5fwexwiJdd3pc2h467CoZ53fjbZb1DN903Cya5hClIQVm8ggWLdRzfyeb+05748BvW4xLtusskyRa8g nhVZWjhZ1soiG3pBwyp2XFi9PsoSlVlujb6VRcRBkuI52eduHglDNvziYsKaj2N3Hflf1MoMal4v+A== Subject: [FFmpeg-devel] [PATCH 2/3] avformat/act: Check ff_get_wav_header() for failure 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 MIME-Version: 1.0 Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" X-TUID: ChUC3qVQA+L9 Fixes: missing error check Fixes: CID717495 Signed-off-by: Michael Niedermayer --- libavformat/act.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/libavformat/act.c b/libavformat/act.c index 6dd9f62a87..da73fcceca 100644 --- a/libavformat/act.c +++ b/libavformat/act.c @@ -68,6 +68,7 @@ static int read_header(AVFormatContext *s) AVIOContext *pb = s->pb; int size; AVStream* st; + int ret; int min,sec,msec; @@ -77,7 +78,9 @@ static int read_header(AVFormatContext *s) avio_skip(pb, 16); size=avio_rl32(pb); - ff_get_wav_header(s, pb, st->codecpar, size, 0); + ret = ff_get_wav_header(s, pb, st->codecpar, size, 0); + if (ret < 0) + return ret; /* 8000Hz (Fine-rec) file format has 10 bytes long From patchwork Mon May 16 01:16:05 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Niedermayer X-Patchwork-Id: 35786 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6a20:a885:b0:7f:4be2:bd17 with SMTP id ca5csp1324007pzb; Sun, 15 May 2022 18:17:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx1KujAiZGGzpqpyOD/HhHD7RFYbzS7ZZKVHe7QMvx2mY7wsStbGJkhGiDviz2OdQz5yIn6 X-Received: by 2002:a05:6402:268d:b0:428:c73:95c4 with SMTP id w13-20020a056402268d00b004280c7395c4mr10584259edd.44.1652663842665; Sun, 15 May 2022 18:17:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652663842; cv=none; d=google.com; s=arc-20160816; b=Kvw5hk86C/NKaCzyYnXOfs/m+3l7J7KtYSL7y3zG+SuRzSPTpRMFlMz2NQqCWzNzfC oRKN2PkZOhBZKRYLtLAIq0BYjrjlWz5gVqLAzxrjKajfBAGt24/7GomKVOezmkM/4NzE bWytSMOvx+e7wZD/CE7BgyiVhWnOXW9lz7VsiFdOaJR3Wz+w/SVmoic63peOY4/CUT/F fNGLn5f/LpcCqYAzWkWCJ4j/HXy+6Snza/dOTbAfPRlGqNij9Wa4z1JSs9zsLJMKErZk FFmvKLjmDUHhVk0IJ40CenWIX0ywfWkl60EClRoZ4yHHqhtAh5GQaPsY5STkau8S/jvU NmMA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version:reply-to :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:references:in-reply-to:message-id:date :to:from:delivered-to; bh=nNQ1QL04PDanoPKjh5JIkrhWVo2lnEiOzaTj7xB2jzc=; b=MQGbayA8oIfSgAJuy7PEQgkX2tDqOsBE4xSjlX7HZV/8sSeczHAzx14NUC6LMtwDGV aLanyeyP3+CukrwmLwe2F+qofgZx5vhL+NI8VUuK2lHkA7Rtn7RoE+DIwo9nTBrQmk2d dySNzodkfzuK19+pL6RnLX1ldOy5eZ12+Ckk8KsWG0Rh0WxiyJpLDXjOXn4yMJ1qSKF1 s5jhYBBAD8ynGjO4pUfKLN/HMHyVPKj77tEDb7nOEnQBFLJR3eGnayHx4DuTEwoLOyxZ N1xhuKF1iBs6sbrrJLnFt/9wCtoY9+M58QJBrE5btoMli4qLkI1nUNFe/dYNFPTyk5lU dtVQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) smtp.mailfrom=ffmpeg-devel-bounces@ffmpeg.org Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id r25-20020a170906c29900b006e8666ecf83si9187938ejz.144.2022.05.15.18.17.22; Sun, 15 May 2022 18:17:22 -0700 (PDT) Received-SPF: pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) client-ip=79.124.17.100; Authentication-Results: mx.google.com; spf=pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) smtp.mailfrom=ffmpeg-devel-bounces@ffmpeg.org Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 7528168B507; Mon, 16 May 2022 04:17:20 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from vie01a-dmta-at03-1.mx.upcmail.net (vie01a-dmta-at03-1.mx.upcmail.net [62.179.121.151]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id A58AC68B4F7 for ; Mon, 16 May 2022 04:17:13 +0300 (EEST) Received: from [172.31.216.235] (helo=vie01a-pemc-psmtp-pe12.mail.upcmail.net) by vie01a-dmta-at03.mx.upcmail.net with esmtp (Exim 4.92) (envelope-from ) id 1nqPMA-0003wo-1q for ffmpeg-devel@ffmpeg.org; Mon, 16 May 2022 03:17:06 +0200 Received: from ren-mail-psmtp-mg02. ([80.109.253.241]) by vie01a-pemc-psmtp-pe12.mail.upcmail.net with ESMTP id qPL8nCu4S8s8UqPMAntbHp; Mon, 16 May 2022 03:17:06 +0200 Received: from localhost ([213.47.68.29]) by ren-mail-psmtp-mg02. with ESMTP id qPLCnOEXk8eSWqPLCnsHAy; Mon, 16 May 2022 03:16:06 +0200 X-Env-Mailfrom: michael@niedermayer.cc X-Env-Rcptto: ffmpeg-devel@ffmpeg.org X-SourceIP: 213.47.68.29 X-CNFS-Analysis: v=2.4 cv=KKE5sHJo c=1 sm=1 tr=0 ts=6281a5d6 a=2hcxjKEKjp0CzLx6oWAm4g==:117 a=2hcxjKEKjp0CzLx6oWAm4g==:17 a=MKtGQD3n3ToA:10 a=1oJP67jkp3AA:10 a=GEAsPZ9sns4A:10 a=_fnZI6VXZRqDDjkLB6gA:9 From: Michael Niedermayer To: FFmpeg development discussions and patches Date: Mon, 16 May 2022 03:16:05 +0200 Message-Id: <20220516011605.18792-3-michael@niedermayer.cc> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20220516011605.18792-1-michael@niedermayer.cc> References: <20220516011605.18792-1-michael@niedermayer.cc> X-CMAE-Envelope: MS4wfCFHxJWtBlrFa4J7m3UHG7Wqr7K+cwwt3w9JcSwtSlMcATKElVvpNQcfmV9zoszZx8h3XRTbmsrErFd1ijGjmMTSHMqiD4MVIrbKZS5jMttbCN1A5l3z /WOLcoukKnypVTNGGAgpxrx6mLf4ABFoVCofABbQGTeq7ruCXg3SbF+aVddnCi34QLU9xOqGiIPT2w== Subject: [FFmpeg-devel] [PATCH 3/3] avcodec/mpeg4videodec: Replace always true check by assert 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 MIME-Version: 1.0 Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" X-TUID: w74v8QT+EdXR Maybe helps coverity Helps: CID1433771 Signed-off-by: Michael Niedermayer --- libavcodec/mpeg4videodec.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libavcodec/mpeg4videodec.c b/libavcodec/mpeg4videodec.c index e2bde73639..715cb606c9 100644 --- a/libavcodec/mpeg4videodec.c +++ b/libavcodec/mpeg4videodec.c @@ -1981,7 +1981,8 @@ static int mpeg4_decode_studio_block(MpegEncContext *s, int32_t block[64], int n return AVERROR_INVALIDDATA; j = scantable[idx++]; block[j] = get_xbits(&s->gb, additional_code_len); - } else if (group == 21) { + } else { + av_assert2(group == 21); /* Escape */ if (idx > 63) return AVERROR_INVALIDDATA;