From patchwork Sat Mar 7 14:15:38 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: 18078 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 E9E5F449756 for ; Sat, 7 Mar 2020 16:15:51 +0200 (EET) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id BE70468AEB6; Sat, 7 Mar 2020 16:15:51 +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 8497268AEA0 for ; Sat, 7 Mar 2020 16:15:45 +0200 (EET) Date: Sat, 07 Mar 2020 14:15:38 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=zanevaniperen.com; s=protonmail; t=1583590544; bh=Q1qmF6hMffC/i36CtO7OLPBTqsgwN3cGIv6e7W22zaw=; h=Date:To:From:Cc:Reply-To:Subject:Feedback-ID:From; b=sTQgxfs/o7N1NKlTaVkWSJ1XXvNOu/BPb5Ku/OdHP4d7epvfxkAuspmE+7drPilUh BHBIUrxqCi4tgaLqFcqGAl8NeUeVk/1El3VbE+i6TA+kuLE/oP9DMRgyEy4NxEhNuW 037F5pNlIs1lvzbbgtym35MrjZ2dYxOiPbquE0ic= To: ffmpeg-devel@ffmpeg.org From: Zane van Iperen Message-ID: <20200307141326.24374-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=disabled version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on mail.protonmail.ch Subject: [FFmpeg-devel] [PATCH v2 0/4] High Voltage Software ALP 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 .TUN and .PCM files used by some High Voltage Software games. v2: - check for header size and "ADPCM" magic in probe - error if sample rate > 44100 to catch possible overflow - don't allocate stream until after header is validated - formatting fixes Zane van Iperen (4): avcodec: add decoder for High Voltage Software's ALP ADPCM avformat: add demuxer for LEGO Racers' ALP format changelog: add adpcm_ima_alp decoder and alp demuxer doc: add adpcm_ima_alp Changelog | 3 +- doc/general.texi | 1 + libavcodec/Makefile | 1 + libavcodec/adpcm.c | 36 ++++++++++ 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/alp.c | 146 +++++++++++++++++++++++++++++++++++++++ libavformat/version.h | 4 +- 12 files changed, 201 insertions(+), 5 deletions(-) create mode 100644 libavformat/alp.c