From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org [79.124.17.100]) by master.gitmailbox.com (Postfix) with ESMTP id 02FFD43F6B for ; Thu, 20 Oct 2022 01:30:50 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 1374568BDAF; Thu, 20 Oct 2022 04:30:49 +0300 (EEST) Received: from mx.sdf.org (mx.sdf.org [205.166.94.24]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 872F868BBD2 for ; Thu, 20 Oct 2022 04:30:42 +0300 (EEST) Received: from b8bd93e02b7f3cc8eb447cfd70474c2e ([1.145.213.234]) (authenticated (0 bits)) by mx.sdf.org (8.15.2/8.14.5) with ESMTPSA id 29K1UaNm026331 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits) verified NO) for ; Thu, 20 Oct 2022 01:30:40 GMT Date: Thu, 20 Oct 2022 12:30:33 +1100 From: Peter Ross To: ffmpeg-devel@ffmpeg.org Message-ID: <48a2b0b2ccefd79444b467e7d69527028ee5f3cb.1666229366.git.pross@xvid.org> References: <406d03fabf0bcf44fbfc894cf9960e3ad3947caf.1666229366.git.pross@xvid.org> MIME-Version: 1.0 In-Reply-To: <406d03fabf0bcf44fbfc894cf9960e3ad3947caf.1666229366.git.pross@xvid.org> Subject: [FFmpeg-devel] [PATCHv2 3/4] avcodec/svq1enc: output ident string in extradata field 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 Content-Type: multipart/mixed; boundary="===============6134250748940364072==" Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Archived-At: List-Archive: List-Post: --===============6134250748940364072== Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="dv6f6LCNLm4P3GoX" Content-Disposition: inline --dv6f6LCNLm4P3GoX Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable This will enable the acurate identification of FFmpeg produced SVQ1 streams, should there be new bugs found in the encoder. --- libavcodec/svq1enc.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/libavcodec/svq1enc.c b/libavcodec/svq1enc.c index 9bd5a04368..6aacaef88d 100644 --- a/libavcodec/svq1enc.c +++ b/libavcodec/svq1enc.c @@ -41,6 +41,7 @@ #include "svq1.h" #include "svq1encdsp.h" #include "svq1enc_cb.h" +#include "version.h" =20 #include "libavutil/avassert.h" #include "libavutil/frame.h" @@ -628,6 +629,14 @@ static av_cold int svq1_encode_init(AVCodecContext *av= ctx) =20 ff_h263_encode_init(&s->m); // mv_penalty =20 + if (!(s->avctx->flags & AV_CODEC_FLAG_BITEXACT)) { + avctx->extradata =3D av_malloc(sizeof(LIBAVCODEC_IDENT)); + if (!avctx->extradata) + return AVERROR(ENOMEM); + memcpy(avctx->extradata, LIBAVCODEC_IDENT, sizeof(LIBAVCODEC_IDENT= )); + avctx->extradata_size =3D sizeof(LIBAVCODEC_IDENT); + } + return 0; } =20 --=20 2.35.1 -- Peter (A907 E02F A6E5 0CD2 34CD 20D2 6760 79C5 AC40 DD6B) --dv6f6LCNLm4P3GoX Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iF0EABECAB0WIQSpB+AvpuUM0jTNINJnYHnFrEDdawUCY1CkuQAKCRBnYHnFrEDd a5sgAJ9c5WFiw8fB2qTggrOvYZtaY7lGLwCggD37+Ert2XTZWgRpouAOxnQOZCI= =TwGR -----END PGP SIGNATURE----- --dv6f6LCNLm4P3GoX-- --===============6134250748940364072== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe". --===============6134250748940364072==--