From patchwork Sun Aug 9 23:44:58 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zane van Iperen X-Patchwork-Id: 21569 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 2B6E744A560 for ; Mon, 10 Aug 2020 02:45:08 +0300 (EEST) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 1464C68A3AF; Mon, 10 Aug 2020 02:45:08 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail-40134.protonmail.ch (mail-40134.protonmail.ch [185.70.40.134]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id E86DF68A1AE for ; Mon, 10 Aug 2020 02:45:01 +0300 (EEST) Date: Sun, 09 Aug 2020 23:44:58 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=zanevaniperen.com; s=protonmail; t=1597016701; bh=sfWa4cHF1nHw/VfOVG6C8ITR5VJkPnWMCBjgWeo9IWs=; h=Date:To:From:Cc:Reply-To:Subject:In-Reply-To:References:From; b=XLF4Xi4ZqoP7gMcItNWbFX9aNOdkgi3dmUc2M7sPlIVbibj6NUY+RLew2XJAormyf hK836LeHEkbgAgyUketSipej/WxSb+Tvlu5DBgvp9VazuVhm9xUsslBc+ymtbBDwHt HhS4XGUR7Hb6AY4l49tm8uuTcOVHXPbavKEP0rCg= To: ffmpeg-devel@ffmpeg.org From: Zane van Iperen Message-ID: <20200809234441.2365933-2-zane@zanevaniperen.com> In-Reply-To: <20200809234441.2365933-1-zane@zanevaniperen.com> References: <20200809234441.2365933-1-zane@zanevaniperen.com> MIME-Version: 1.0 X-Spam-Status: No, score=-1.2 required=7.0 tests=ALL_TRUSTED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF shortcircuit=no autolearn=disabled version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on mail.protonmail.ch Subject: [FFmpeg-devel] [PATCH v3 2/5] avformat/argo_asf: don't check file version 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: Zane van Iperen Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" It has no bearing on structure. Determined by looking at the ASF files from several Argonaut games: - FX Fighter, - Croc, - Croc 2, - The Emperor's New Groove, and - Disney's Aladdin in Nasira's Revenge The only versions that appear are 1.1, 1.2, and 2.1, and their structure is identical. Signed-off-by: Zane van Iperen --- libavformat/argo_asf.c | 7 ------- 1 file changed, 7 deletions(-) diff --git a/libavformat/argo_asf.c b/libavformat/argo_asf.c index 94d3ae3e09..bb69b01ff4 100644 --- a/libavformat/argo_asf.c +++ b/libavformat/argo_asf.c @@ -136,13 +136,6 @@ static int argo_asf_read_header(AVFormatContext *s) argo_asf_parse_file_header(&asf->fhdr, buf); - if (!argo_asf_is_known_version(&asf->fhdr)) { - avpriv_request_sample(s, "Version %hu.%hu", - asf->fhdr.version_major, asf->fhdr.version_minor - ); - return AVERROR_PATCHWELCOME; - } - if (asf->fhdr.num_chunks == 0) { return AVERROR_INVALIDDATA; } else if (asf->fhdr.num_chunks > 1) {