From patchwork Thu Apr 16 14:25:13 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: 18997 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 426C744BC7E for ; Thu, 16 Apr 2020 17:25:24 +0300 (EEST) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 1B01068B53A; Thu, 16 Apr 2020 17:25:24 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail2.protonmail.ch (mail2.protonmail.ch [185.70.40.22]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 85D7068B0C0 for ; Thu, 16 Apr 2020 17:25:18 +0300 (EEST) Date: Thu, 16 Apr 2020 14:25:13 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=zanevaniperen.com; s=protonmail; t=1587047116; bh=oxCSiJHAzkD3epHgRc/2CKlerDDGt4tomc2J4fW+5zY=; h=Date:To:From:Cc:Reply-To:Subject:From; b=TKT2wRqgQNI4uwUED82ZPR/WsF72WNqPCfDYmAQDA9/+1D+7eRi6DVmR9OOoVT/55 dWs9y/o7aZcGBSFYuDY8CTWCtTwc/nyDuORpsq0tSgdhHO/q5Pt7r3UVRPDeQ8FYaX MtAs9LfJBCIriZAp77y3NphXPyceLaCwVZ+8E8ko= To: ffmpeg-devel@ffmpeg.org From: Zane van Iperen Message-ID: <20200416142508.28626-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 v9 0/2] Pro Pinball Series Soundbank 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" Adds support for the soundbank files used by the Pro Pinball series of games. v9: [6] - Rebase after codec_id.h changes - style fixes - Fix an uninitialised variable read v8: [5] - change "goto done" to a return + "goto fail" - Handle truncated files - Fix potential byte counter desync v7: [4] - Fix empty lines - Use av_malloc_array() instead of av_reallocp_array() - Replace multiple av_freep()'s with a goto - Minor comment cleanups - Ask for a sample if unexpected header values are found v6: [3] - fix tools/probetest failure v5: - add probe function - add flag #define's v4: [2] - fix adpcm index table type v3: [1] - fix potential memory leak if read_header() fails - fix a buffer overread - attempt seek before updating state - remove unneeded check - naming fixes v2: - Add sanity checks in header fields - Formatting and comment fixes - Change the struct names to match the files [1]: https://ffmpeg.org/pipermail/ffmpeg-devel/2020-March/258672.html [2]: https://ffmpeg.org/pipermail/ffmpeg-devel/2020-March/258918.html [3]: https://ffmpeg.org/pipermail/ffmpeg-devel/2020-March/259278.html [4]: https://ffmpeg.org/pipermail/ffmpeg-devel/2020-April/259864.html [5]: https://ffmpeg.org/pipermail/ffmpeg-devel/2020-April/259863.html [6]: https://ffmpeg.org/pipermail/ffmpeg-devel/2020-April/260706.html Zane van Iperen (2): avcodec: add support for Cunning Developments' ADPCM avformat: add demuxer for Pro Pinball Series' Soundbanks Changelog | 2 + doc/general.texi | 1 + libavcodec/Makefile | 1 + libavcodec/adpcm.c | 34 +++++ libavcodec/adpcm_data.c | 13 ++ libavcodec/adpcm_data.h | 2 + libavcodec/allcodecs.c | 1 + libavcodec/codec_desc.c | 7 + libavcodec/codec_id.h | 1 + libavcodec/version.h | 2 +- libavformat/Makefile | 1 + libavformat/allformats.c | 1 + libavformat/pp_bnk.c | 293 +++++++++++++++++++++++++++++++++++++++ libavformat/version.h | 2 +- 14 files changed, 359 insertions(+), 2 deletions(-) create mode 100644 libavformat/pp_bnk.c