From patchwork Tue May 14 20:02:24 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marton Balint X-Patchwork-Id: 48881 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6a21:3a48:b0:1af:fc2d:ff5a with SMTP id zu8csp1184148pzb; Tue, 14 May 2024 13:02:46 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCULiJo1q0hBGQiaR4Hq/Iz2mpHKG8auTyerqK1WbhwCwIW3AFkhl/XoSRPwNAD5hPx8R2uVnwOL9AacI1Fpu9P1yiF1eMFHD9tigg== X-Google-Smtp-Source: AGHT+IEOrvofseWcLgbxZcu0b0kl4JBp9U6dPzi1sYRMLOwO1QIMqT7bLFQdZ4Z1MGjkWzp7p1eN X-Received: by 2002:a50:9b41:0:b0:572:a123:5ed0 with SMTP id 4fb4d7f45d1cf-5734d5cccf3mr9361208a12.21.1715716965790; Tue, 14 May 2024 13:02:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1715716965; cv=none; d=google.com; s=arc-20160816; b=CSuAqCr4PIKcwoZcFyAorcxkPzZBemg7nftR0EqPiiKmA8B53wiw9ZPavnd5ghG4wn X6dk9a9+KSPiSWzFTzTHn9xsnc1EFYUBSazvdHFOk+HumL4OAuRGFzs0aItx547o4F5M j1kP3qoDxW85ijVqp9VPnHFBgpIThQjWv8IkaDDT2JoY4gQTQT6zFRMSjkraYqvd7Dwq Mh0r9nDjuX2PdmWJmUUkwcC6skuUi1Q5iH7iLmKR2DIgFRrLQIbyoO8n4G5z4SNQq+A7 TQAlwkMHl3i0h6JSrWJUtV52ojGusLyx6SCXbI4CnbiIvmsf0mcICEOBPQk2NsaDwmCx MV9A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:cc:reply-to :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:mime-version:message-id:date:to:from :delivered-to; bh=4c7xwjOMKc/yxQYN6k+++Ppu/Rdbhuh82BVGVnQRCk4=; fh=s+G8Ss4JbeMFkWPSp2LmIH/LXFyBlALRiww1j3FPjHY=; b=xIimBQo/sIfAL7jKpoPszFrYobWv4FcLnJUUvoUnSvNVoif7VH3/h120vEtvybYySS i2DKIKoACQ9THD7VK8su7yU5SYlAbLr1KHq0mR5F5CpT1clKtwJYv/unwQBsO6do/0kr 5ppwwxCBj8dIEU8V31rCr4xVF95Bmav+pb+QhOttZGzsmAouj1OqtwQC+2cBeDvrzkBC avKTxgn6HUKoxD9K+YVJhYnm3s+NkHkzgnq0gKchfg0QJEVmcVsHtu3ewlwFkwgq4qTg mbLXgc7E0k7NSaN+L36x2A4J9pGXSjxL4Kyq7H42mELS5oc+38aWVDowmB+DmuLgcBz9 rO8w==; dara=google.com 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 4fb4d7f45d1cf-5733c36e85esi6434417a12.573.2024.05.14.13.02.43; Tue, 14 May 2024 13:02:45 -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 92B8668D747; Tue, 14 May 2024 23:02:41 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from iq.passwd.hu (iq.passwd.hu [217.27.212.140]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id AB9AF68CEC8 for ; Tue, 14 May 2024 23:02:34 +0300 (EEST) Received: from localhost (localhost [127.0.0.1]) by iq.passwd.hu (Postfix) with ESMTP id 6DD71EA6CE; Tue, 14 May 2024 22:02:34 +0200 (CEST) X-Virus-Scanned: amavisd-new at passwd.hu Received: from iq.passwd.hu ([127.0.0.1]) by localhost (iq.passwd.hu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id XZMiolGJJP2z; Tue, 14 May 2024 22:02:32 +0200 (CEST) Received: from bluegene.passwd.hu (localhost [127.0.0.1]) by iq.passwd.hu (Postfix) with ESMTP id 1368EEA63E; Tue, 14 May 2024 22:02:32 +0200 (CEST) From: Marton Balint To: ffmpeg-devel@ffmpeg.org Date: Tue, 14 May 2024 22:02:24 +0200 Message-Id: <20240514200226.4320-1-cus@passwd.hu> X-Mailer: git-send-email 2.35.3 MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH 1/3] avformat/mp3dec: only call ffio_ensure_seekback once 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: Marton Balint Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" X-TUID: Jp43JFCUAyq/ Otherwise the subsequent ffio_ensure_seekback calls destroy the buffer of the earlier. The worst case ~66kB seekback is so small it is easier to request it entirely. Fixes ticket #10837, a regression since 0d17f5228f4d3854066ec1001f69c7d1714b0df9. Signed-off-by: Marton Balint --- libavformat/mp3dec.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/libavformat/mp3dec.c b/libavformat/mp3dec.c index ec6cf567bc..78d6c8c71c 100644 --- a/libavformat/mp3dec.c +++ b/libavformat/mp3dec.c @@ -32,6 +32,7 @@ #include "replaygain.h" #include "libavcodec/codec_id.h" +#include "libavcodec/mpegaudio.h" #include "libavcodec/mpegaudiodecheader.h" #define XING_FLAG_FRAMES 0x01 @@ -400,15 +401,16 @@ static int mp3_read_header(AVFormatContext *s) if (ret < 0) return ret; + ret = ffio_ensure_seekback(s->pb, 64 * 1024 + MPA_MAX_CODED_FRAME_SIZE + 4); + if (ret < 0) + return ret; + off = avio_tell(s->pb); for (i = 0; i < 64 * 1024; i++) { uint32_t header, header2; int frame_size; - if (!(i&1023)) - ffio_ensure_seekback(s->pb, i + 1024 + 4); frame_size = check(s->pb, off + i, &header); if (frame_size > 0) { - ffio_ensure_seekback(s->pb, i + 1024 + frame_size + 4); ret = check(s->pb, off + i + frame_size, &header2); if (ret >= 0 && (header & MP3_MASK) == (header2 & MP3_MASK)) From patchwork Tue May 14 20:02:25 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marton Balint X-Patchwork-Id: 48882 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6a21:3a48:b0:1af:fc2d:ff5a with SMTP id zu8csp1184216pzb; Tue, 14 May 2024 13:02:52 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCVxWj39Ek3wtIsLkmB1LDXPFB+SnLED2ApyXJ5EhphR0s6wUplvweU0bXFl/TivZQvI6iJWTfCo6UP2PLcFYO3zV24hXt15XsRZvQ== X-Google-Smtp-Source: AGHT+IFAAcIS8+PGx+qHnsg9sswaWjO58lmGde7NNH5uW5E2oBb0fc/DXhZWQFqyxWZOEccK44WI X-Received: by 2002:a05:6402:5154:b0:572:58d3:a6bf with SMTP id 4fb4d7f45d1cf-5734d6b2ed1mr10864322a12.2.1715716972028; Tue, 14 May 2024 13:02:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1715716972; cv=none; d=google.com; s=arc-20160816; b=fjEhqNr1aU7O7pUBa//sZoSl8ZW9eMHXsamkPDu52BNS3cnSy3/P+aUZIwyNS69ciy XJZo7D5Hjl1aiEY4wodvWAYx9czggkr5z0n+h8aIJHwFU3iF30IeylmJYmWQWPKJrktc eRZTCzXfaimrQZ1Qp7ZxhyOOg8dmdP4c3gX80/xUtOXsvi/F1U6EupCpLT8wlxst9HC5 WTmMEvawRkc5VFXB79Y6c8tfPGciz/USYQrDEVDIHPjpN6GU12Bq8evgFGojIDlLjOsz gQz9pUdbAOF7M3lYhxoWHgp899mdypczgUUB7pwslHVtKJ9d/TS26Wpo7qLDOjvTNWQ2 iPSw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:cc: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:delivered-to; bh=kLVGrg/fVRU0hLJUDpGw0Lk3WvbC0Xptv8Lo9floyOs=; fh=s+G8Ss4JbeMFkWPSp2LmIH/LXFyBlALRiww1j3FPjHY=; b=JfFeXWK1GZyRMEDq7BxbzUCjRX/vNtgGfmlyOAp8p8R5F+8sXsevSHRtVXSF7LuRsd poUM22l+zsVBI+xZ1Q0/+BMP/AYH1iDPjWCg4fdFFfh4fsNbfybXfDfoQVWJl0pAFfdJ /p7jqFU1iNfCZIosK7j1ADZc3SN7H3BI5Cn8Vo879v4g1JVRrUVfBY1uoOkMf+vEZELA Z0/mMvOkac/586pOx5a9rJw0M5Eel8Z8GadL6nTT7RopFbraK7asgJ/6TYihOA/2C9o9 gA6mD8w/5YnvWWsPI+pmPj19BlVc3JBhzUyrGQDWy+N4dX5pLgL0wQdg7S5RKclJsBRn HzNA==; dara=google.com 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 4fb4d7f45d1cf-5733c378546si7045206a12.643.2024.05.14.13.02.51; Tue, 14 May 2024 13:02:52 -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 2BC5968D73D; Tue, 14 May 2024 23:02:44 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from iq.passwd.hu (iq.passwd.hu [217.27.212.140]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 0FFE968D748 for ; Tue, 14 May 2024 23:02:37 +0300 (EEST) Received: from localhost (localhost [127.0.0.1]) by iq.passwd.hu (Postfix) with ESMTP id D1255EA3CB; Tue, 14 May 2024 22:02:36 +0200 (CEST) X-Virus-Scanned: amavisd-new at passwd.hu Received: from iq.passwd.hu ([127.0.0.1]) by localhost (iq.passwd.hu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id tYoimc2Za01D; Tue, 14 May 2024 22:02:35 +0200 (CEST) Received: from bluegene.passwd.hu (localhost [127.0.0.1]) by iq.passwd.hu (Postfix) with ESMTP id 75573EA63E; Tue, 14 May 2024 22:02:35 +0200 (CEST) From: Marton Balint To: ffmpeg-devel@ffmpeg.org Date: Tue, 14 May 2024 22:02:25 +0200 Message-Id: <20240514200226.4320-2-cus@passwd.hu> X-Mailer: git-send-email 2.35.3 In-Reply-To: <20240514200226.4320-1-cus@passwd.hu> References: <20240514200226.4320-1-cus@passwd.hu> MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH 2/3] avformat/mp3dec: simplify inner frame size check in mp3_read_header 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: Marton Balint Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" X-TUID: KLTtFP5xa3mh We are protecting the checked buffer with ffio_ensure_seekback(), so if the inner check fails with a seek error, that likely means the end of file was reached when checking for the next frame. This could also be the result of a wrongly guessed (larger than normal) frame size, so let's continue the loop instead of breaking out early. It will end sooner or later anyway. Signed-off-by: Marton Balint --- libavformat/mp3dec.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/libavformat/mp3dec.c b/libavformat/mp3dec.c index 78d6c8c71c..4abc73966f 100644 --- a/libavformat/mp3dec.c +++ b/libavformat/mp3dec.c @@ -412,14 +412,8 @@ static int mp3_read_header(AVFormatContext *s) frame_size = check(s->pb, off + i, &header); if (frame_size > 0) { ret = check(s->pb, off + i + frame_size, &header2); - if (ret >= 0 && - (header & MP3_MASK) == (header2 & MP3_MASK)) - { + if (ret >= 0 && (header & MP3_MASK) == (header2 & MP3_MASK)) break; - } else if (ret == CHECK_SEEK_FAILED) { - av_log(s, AV_LOG_ERROR, "Invalid frame size (%d): Could not seek to %"PRId64".\n", frame_size, off + i + frame_size); - return AVERROR(EINVAL); - } } else if (frame_size == CHECK_SEEK_FAILED) { av_log(s, AV_LOG_ERROR, "Failed to read frame size: Could not seek to %"PRId64".\n", (int64_t) (i + 1024 + frame_size + 4)); return AVERROR(EINVAL); From patchwork Tue May 14 20:02:26 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marton Balint X-Patchwork-Id: 48883 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6a21:3a48:b0:1af:fc2d:ff5a with SMTP id zu8csp1184305pzb; Tue, 14 May 2024 13:03:01 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCXMr/kU0gOj/xBLB/hNNyq9VhJzlx/JxZaw1/edYdw8rzWbGl+XLYYe1hPpldFEDEmrfO1TYr13tI0sJQI5kZmbewyiuSOEoqWV2Q== X-Google-Smtp-Source: AGHT+IFLzHNC67v7w7RcBRsgUZ/Sg4DG9/B806IV0RYIaYKmFJyuIHAyKgKkJQ24FfOgFXShjUqJ X-Received: by 2002:a05:651c:50c:b0:2e0:ffea:4298 with SMTP id 38308e7fff4ca-2e52039c0c8mr111013031fa.34.1715716981302; Tue, 14 May 2024 13:03:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1715716981; cv=none; d=google.com; s=arc-20160816; b=H45VKRlQFcmeEZbbC/bX/V27tA+72msL/JNIJclmMCj8GSHrB3jYQ9E+NlRtdFR7yE oqXNXGS4cLWEXDtyxtwho8JBcKNoC2eu/Hjku6AJ28wRNApfj1GPy0ypWVLwgVYJOu88 3pdu27M0QpqwwURl/etVbuI/FvLv2ilOT83K62T+dk67qWghIVF+eWYgCKm0ovy561Rq FdMxmHUG+6qkcwMekRT+G1dv9T1J8Gv2Up+EetSaM/qnfX3ShQDdRCkfYqMAD8+RRHLn OlHpcw/zs5QtbWgNj9nBQd2g6j3buYKluTFuQZQ+GiAj0ZApk3JFaAu4VETvvC7FKJMB fM9g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:cc: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:delivered-to; bh=EHZE1yP2Dc9Hp/W1dhrCdIppzLpzuG7qgzVTB7HowUw=; fh=s+G8Ss4JbeMFkWPSp2LmIH/LXFyBlALRiww1j3FPjHY=; b=n2RhVINg+hSM7y5SN02iR581bWxQEifgUdAKeYxD4krxiu3v6GIsfLE6FiGEsFqHrJ awpF2eWKNrhgDX2Tn5gpwnabXQL0jKM+ibPU4sf7NuGqBpWdkYzmSrCjdTnujoq7GhRv cMs8fO5xxFi0HC5NMzLS2q5pUCAyqZO4NGaJKGtEHb5/fJ2RpL9JbeZkgvISRA6WGyH5 uNwhtxnASldnCVZrMP9mu6YCBkPIT7kdV76rGlydQPj9KbkzG2S0WmfOUonU9VqYYiKx skmq3HitWMW79JtjpqpOyWbFEI1LkCTqHSIj5woXGQOBzC08eRgCFp+HMZlCc6xawGK1 Yw6Q==; dara=google.com 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 4fb4d7f45d1cf-574ecb9f549si414992a12.277.2024.05.14.13.03.00; Tue, 14 May 2024 13:03:01 -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 C8A5C68D753; Tue, 14 May 2024 23:02:49 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from iq.passwd.hu (iq.passwd.hu [217.27.212.140]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id B2D8968D740 for ; Tue, 14 May 2024 23:02:42 +0300 (EEST) Received: from localhost (localhost [127.0.0.1]) by iq.passwd.hu (Postfix) with ESMTP id 8EF54EA3CB; Tue, 14 May 2024 22:02:42 +0200 (CEST) X-Virus-Scanned: amavisd-new at passwd.hu Received: from iq.passwd.hu ([127.0.0.1]) by localhost (iq.passwd.hu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id MbSmo7B_-4Wp; Tue, 14 May 2024 22:02:40 +0200 (CEST) Received: from bluegene.passwd.hu (localhost [127.0.0.1]) by iq.passwd.hu (Postfix) with ESMTP id DEE77EA5DA; Tue, 14 May 2024 22:02:39 +0200 (CEST) From: Marton Balint To: ffmpeg-devel@ffmpeg.org Date: Tue, 14 May 2024 22:02:26 +0200 Message-Id: <20240514200226.4320-3-cus@passwd.hu> X-Mailer: git-send-email 2.35.3 In-Reply-To: <20240514200226.4320-1-cus@passwd.hu> References: <20240514200226.4320-1-cus@passwd.hu> MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH 3/3] avformat/mp3dec: change bogus error message if read_header encounters EOF 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: Marton Balint Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" X-TUID: WwzQLHfsfoSS Because of ffio_ensure_seekback() a seek error normally should only happen if the end of file is reached during checking for the junk run-in. Also use proper error code. Signed-off-by: Marton Balint --- libavformat/mp3dec.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libavformat/mp3dec.c b/libavformat/mp3dec.c index 4abc73966f..f421e03926 100644 --- a/libavformat/mp3dec.c +++ b/libavformat/mp3dec.c @@ -415,8 +415,8 @@ static int mp3_read_header(AVFormatContext *s) if (ret >= 0 && (header & MP3_MASK) == (header2 & MP3_MASK)) break; } else if (frame_size == CHECK_SEEK_FAILED) { - av_log(s, AV_LOG_ERROR, "Failed to read frame size: Could not seek to %"PRId64".\n", (int64_t) (i + 1024 + frame_size + 4)); - return AVERROR(EINVAL); + av_log(s, AV_LOG_ERROR, "Failed to find two consecutive MPEG audio frames.\n"); + return AVERROR_INVALIDDATA; } } if (i == 64 * 1024) {