From patchwork Thu Dec 28 18:43:09 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?q?Tomas_H=C3=A4rdin?= X-Patchwork-Id: 45369 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6a20:6623:b0:194:e134:edd4 with SMTP id n35csp4354373pzh; Thu, 28 Dec 2023 10:43:22 -0800 (PST) X-Google-Smtp-Source: AGHT+IH+tamUmG2ZWqlvxqUyjIt8N3PNpEwVra3v3QHBbxY2PYBycCShva/9iSM9PGpLd9nGiPbZ X-Received: by 2002:a05:6512:280c:b0:50e:7b0a:9a30 with SMTP id cf12-20020a056512280c00b0050e7b0a9a30mr3417569lfb.3.1703789001318; Thu, 28 Dec 2023 10:43:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703789001; cv=none; d=google.com; s=arc-20160816; b=x4yvVoBwXyhZ1IWOgJ5KBKWUvOl/d3vjuZf+5f1sbwwGfMm4twzNQpHA+gadmeYmB8 ofvd/qfLIZtTrjnMAL8jO3kMljPTtq/gJwpVtyopc2JDAn78K/WU8sWO515teo7OTCHi srHi7oPcx8Oz3uCXkdaqdkmoS86o2VTJTTRTDLRdARjFHYEUEpldQImWN+RxtS0rWAVE NB5ki+6M8+5/L70lgASMKk5lpUyZBAt+tSsPdwCVNH2rd2rZLfjTR3xurKh6ZLJOeJYh nDlVgWpd/bLj/tuU6RrT2Te5wFP/0pjK0bDF/BpnZki6mpfb7l+zK7YQIkEn0t7pwqPe 1mAQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:reply-to:list-subscribe:list-help:list-post :list-archive:list-unsubscribe:list-id:precedence:subject :mime-version:user-agent:date:to:from:message-id:delivered-to; bh=U5LphevHDah5SObmqrwz/bedunyM4FVm3y6gwvuzo8A=; fh=e5zN9xSzcxLA6bGo3lF+CqTbY/oLwzApV03EO/RBfgQ=; b=rdkeum0D/IXpSWmmb7EtNFMOtb11fQOh2hDKqXgHfLo0BiPYy5Zb7M922k+aD37Vkr +XI+lztwKrDAhXFSK4XjS0FOyFRH7pPrAa+jBVtYLAl1EsXV0nr3et+UECkBbw9cPwYi kJTgpPbftthirsNaLWB33BNVBDsx47Yfad2E0lDnAXU+kRiUm7CzmyyuUr2513SHiJqv i8ql4yMiQuT8nbiBFs3U69zlNOu39uwARVDJ/CkwuuN/VQNe12acYHDac9jwi5909nUO W/EJV2FZ2vt4uO9Tm9leVlaaL3TT7JILn1W8bHYtrkqD4YL5GQD0DAOh9/6kzFwZO4j7 R0Eg== 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 y20-20020a1709060a9400b00a26ac33a23csi6392741ejf.164.2023.12.28.10.43.20; Thu, 28 Dec 2023 10:43:21 -0800 (PST) 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 BF55568CC9C; Thu, 28 Dec 2023 20:43:17 +0200 (EET) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from glom.nmugroup.com (glom.nmugroup.com [193.183.80.6]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 2DE3F68C49C for ; Thu, 28 Dec 2023 20:43:11 +0200 (EET) Received: from localhost (localhost [127.0.0.1]) by glom.nmugroup.com (Postfix) with ESMTP id BD1BD54252BF for ; Thu, 28 Dec 2023 19:43:10 +0100 (CET) Received: from debian.lan (unknown [IPv6:2a00:66c0:a::72c]) (Authenticated sender: git01) by glom.nmugroup.com (Postfix) with ESMTPSA id 781D054252BB for ; Thu, 28 Dec 2023 19:43:10 +0100 (CET) Message-ID: From: Tomas =?iso-8859-1?q?H=E4rdin?= To: FFmpeg development discussions and patches Date: Thu, 28 Dec 2023 19:43:09 +0100 User-Agent: Evolution 3.46.4-2 MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH 1/6] lavc/codec2utils: Use actual libcodec2 version 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 Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" X-TUID: Q1/vI3EtGyIF libcodec2 has reached 1.X so it's about time the bindings receive some attention. This patchset also includes some much-needed tests. Where do I submit files for inclusion in FATE again? They are very small as is to be expected from a codec that runs at 700-3200 bit/s /Tomas From 7205e741aaadc354b403010c97f9cd803eec612d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomas=20H=C3=A4rdin?= Date: Wed, 27 Dec 2023 17:32:21 +0100 Subject: [PATCH 1/6] lavc/codec2utils: Use actual libcodec2 version --- libavcodec/codec2utils.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libavcodec/codec2utils.h b/libavcodec/codec2utils.h index 6812ae895c..a03c3c0c5f 100644 --- a/libavcodec/codec2utils.h +++ b/libavcodec/codec2utils.h @@ -23,6 +23,7 @@ #define AVCODEC_CODEC2UTILS_H #include +#include //Highest mode we're willing to use. //Don't want to let users accidentally produce files that can't be decoded in the future. @@ -49,9 +50,8 @@ //Used in codec2raw demuxer and libcodec2 encoder static inline void codec2_make_extradata(uint8_t *ptr, int mode) { - //version 0.8 as of 2017-12-23 (r3386) - ptr[0] = 0; //major - ptr[1] = 8; //minor + ptr[0] = CODEC2_VERSION_MAJOR; + ptr[1] = CODEC2_VERSION_MINOR; ptr[2] = mode; //mode ptr[3] = 0; //flags } -- 2.39.2