From patchwork Mon May 3 11:31:55 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zane van Iperen X-Patchwork-Id: 27566 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6a10:399:0:0:0:0 with SMTP id 25csp158727pxh; Mon, 3 May 2021 04:32:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxMGU/L5tss6clR2ieKCea1AKzx9EtYeUkzT1yZopCylqrYmDzlfJe909HLFZTyhGnS226F X-Received: by 2002:a17:906:79a:: with SMTP id l26mr16004224ejc.268.1620041547872; Mon, 03 May 2021 04:32:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620041547; cv=none; d=google.com; s=arc-20160816; b=psqOl5dSbSCi7Ukic2jHQfnlMtITiQd0Vy3DcXZzJZXgU4kPTKUjblzBTrTVK2S6IW 6XmEAtcTDBRL50Sk4pGUcUJlUEwhH8YZWPLgg3PYVj1DCS7gYlyKayl3k5MPwgp9U8V8 q7sFp2CPKoj7JDgwvJ9BUj0XNCGjtlWcAotJLgHyiKKEyHUNJ4pAxTMHhJUrnFoqMbY6 tn8KOpJSggB+dW0fMT20VnkOcgF7ViqEUzR5GTFLMPslEPiPp4kTjYJBD4BxSsgbn9Np B8B2FZFtWwsF0bBFQT9cOSPKg+IvjOGgrvcOSFKGOnfXYncEm7YZQCzUgLyI3RH/wRqY a3BQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:reply-to:list-subscribe :list-help:list-post:list-archive:list-unsubscribe:list-id :precedence:subject:mime-version:references:in-reply-to:message-id :date:to:from:dkim-signature:delivered-to; bh=cfxzE2LBdKauKRZa3H4TzQq2UDNO4wUQFfw/Za4sXkI=; b=nlC2dT9dQMAP4FbIgP7+/AWODjYNYc+lQAL3Ix67we2GbAWk3BvweCxyT+K+xgHSfG IlNSje5txHcCe5A+v6QbssGLterd0OWtKsr9MFV28G6uR05mQaMlHDsy0U3u5J0NTAxO 704+z8XQ5Al/9F4PICSFld3dPTgTmcrF5PyotMCLCWbAMqmhUa/CquImzvMqIxDulsGY hh8AGuvDmwItWJ9YBFUjS+OM3dCnSmVfqZDUlka2+CsEdMdxt1OdXCTjvbJNfZ2qcprW dxXsfAtRDjy/S4wcJgLEN/g0BW1Y9nHEJUblWFG19TDkI38uA8LnFYiPsZgLWUPNwWF5 Zozw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@zanevaniperen.com header.s=key1 header.b=B3ey8MzO; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=zanevaniperen.com Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id g8si11925461ejm.240.2021.05.03.04.32.27; Mon, 03 May 2021 04:32:27 -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; dkim=neutral (body hash did not verify) header.i=@zanevaniperen.com header.s=key1 header.b=B3ey8MzO; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=zanevaniperen.com Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 93C54687FDE; Mon, 3 May 2021 14:32:13 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from out1.migadu.com (out1.migadu.com [91.121.223.63]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id C8575687FA3 for ; Mon, 3 May 2021 14:32:07 +0300 (EEST) 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=1620041527; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=II+8IzrbLZFmp8CgaoDLNBFoVN1mcNpwh8i/+1VJmlw=; b=B3ey8MzOBj4GCqB7AWg4bpXqmgQKrynXy17ArgGu6ATX+SxHeYElKigU6QmeXcCdaHkqW/ zOKNx8dH2gS7h1SKedXPYja+tLJPAb/po43fRD1J5W8UXacdmPYM3R4gwkD9BlTCMM12vP gw7yO9RYUMokhUo6/V3ecTy7hXnTxtVu1vstnBUwiik8Kr6f8IkrMyJC/JsrzUbXoYkr7q zyCmXj7oLT/cn+LVWgRPmEfp/bCx7z52gKrLBnCioWwsdeKeF0Z+ORKP27v0/imEk/3cD6 y1eexESGKeTGo41+YOrUZ8/tV/JmChWOmQcylDSYOTbKaMlxSbOM1uaSWUxj+w== From: Zane van Iperen To: ffmpeg-devel@ffmpeg.org Date: Mon, 3 May 2021 21:31:55 +1000 Message-Id: <20210503113157.2215-2-zane@zanevaniperen.com> In-Reply-To: <20210503113157.2215-1-zane@zanevaniperen.com> References: <20210503113157.2215-1-zane@zanevaniperen.com> MIME-Version: 1.0 X-Migadu-Flow: FLOW_OUT X-Migadu-Auth-User: git-morningstar@zanevaniperen.com Subject: [FFmpeg-devel] [PATCH 2/4] avcodec/adpcm_psx: ignore unknown flag bits 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 Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" X-TUID: haojX3ub0flz As per documentation. Signed-off-by: Zane van Iperen --- libavcodec/adpcm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/adpcm.c b/libavcodec/adpcm.c index 8c07f3673d..89f3102716 100644 --- a/libavcodec/adpcm.c +++ b/libavcodec/adpcm.c @@ -1984,7 +1984,7 @@ static int adpcm_decode_frame(AVCodecContext *avctx, void *data, filter = filter >> 4; if (filter >= FF_ARRAY_ELEMS(xa_adpcm_table)) return AVERROR_INVALIDDATA; - flag = bytestream2_get_byteu(&gb); + flag = bytestream2_get_byteu(&gb) & 0x7; /* Decode 28 samples. */ for (n = 0; n < 28; n++) {