From patchwork Thu Feb 6 06:58:06 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: 17698 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 4CF8344A93E for ; Thu, 6 Feb 2020 08:58:21 +0200 (EET) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 364B368AEE8; Thu, 6 Feb 2020 08:58:21 +0200 (EET) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail1.protonmail.ch (mail1.protonmail.ch [185.70.40.18]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 8C60168AEF4 for ; Thu, 6 Feb 2020 08:58:14 +0200 (EET) Date: Thu, 06 Feb 2020 06:58:06 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=zanevaniperen.com; s=protonmail; t=1580972293; bh=UqG8RS6gsRbHPB276j8Z6GI/2cjwZC4KSKj90Mza+rc=; h=Date:To:From:Cc:Reply-To:Subject:Feedback-ID:From; b=hEyM6u/cW77A7rvuv9fTg8IGyts+32MKTqpp61eDo73TZBHXBLCK90i13eMAmxB12 9bLHG37Z6HQkUvnSYNBK8qZhx6WuNH/vuFg24Wt8vUc2cCPCaud75uCK7s6/dd9CXx EjhE9HQLgVjhad0uAEnH2/9zmfDSuKvK/UMWiIRk= To: ffmpeg-devel@ffmpeg.org From: Zane van Iperen Message-ID: <20200206065801.28118-1-zane@zanevaniperen.com> Feedback-ID: xylLYHwBzJW7F28tHN-oL9EBm6h5yqtCqG6YwPpJ2oMwBYJT6-HxTnFTF6p18axLiSywX61iUfj4CElBGg8-GA==:Ext:ProtonMail 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=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mail.protonmail.ch Subject: [FFmpeg-devel] [PATCH v2 0/2] Simon & Schuster Interactive VAG demuxer + decoder. 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" Hi all, This patchset adds support for the VAG container and ADPCM variant used by some Simon & Schuster Interactive games such as 'Real War', and 'Real War: Rogue States'. It has been tested against VAG files from both games. v2: - simplify the demuxer - fix error in header structure Some things to note: * SSI's VAG has no relation to the existing PS2 VAG. I've named it 'kvag' (after its tag), but am open to suggestions if this is inappropriate (ssi_vag?). Zane Zane van Iperen (2): avcodec: add decoder for Simon & Schuster Interactive's ADPCM variant avformat: add demuxer for Simon & Schuster Interactive's VAG format libavcodec/Makefile | 1 + libavcodec/adpcm.c | 10 ++++ libavcodec/allcodecs.c | 1 + libavcodec/avcodec.h | 1 + libavcodec/codec_desc.c | 7 +++ libavcodec/version.h | 4 +- libavformat/Makefile | 1 + libavformat/allformats.c | 1 + libavformat/kvag.c | 117 +++++++++++++++++++++++++++++++++++++++ libavformat/version.h | 2 +- 10 files changed, 142 insertions(+), 3 deletions(-) create mode 100644 libavformat/kvag.c