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 351734AB92 for ; Sat, 13 Jul 2024 13:47:42 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 517AD68DB1C; Sat, 13 Jul 2024 16:47:41 +0300 (EEST) Received: from mail0.khirnov.net (red.khirnov.net [176.97.15.12]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 6518568DAFA for ; Sat, 13 Jul 2024 16:47:34 +0300 (EEST) Authentication-Results: mail0.khirnov.net; dkim=pass (2048-bit key; unprotected) header.d=khirnov.net header.i=@khirnov.net header.a=rsa-sha256 header.s=mail header.b=QwCOI2RH; dkim-atps=neutral Received: from localhost (localhost [IPv6:::1]) by mail0.khirnov.net (Postfix) with ESMTP id 240E9240DB7 for ; Sat, 13 Jul 2024 15:47:34 +0200 (CEST) Received: from mail0.khirnov.net ([IPv6:::1]) by localhost (mail0.khirnov.net [IPv6:::1]) (amavis, port 10024) with ESMTP id VNdDS2FQX80G for ; Sat, 13 Jul 2024 15:47:33 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=khirnov.net; s=mail; t=1720878453; bh=bGJFBeJHGKFaGnOeYgbY62QTRLhKu47rAQPohnrCCoE=; h=Subject:From:To:In-Reply-To:References:Date:From; b=QwCOI2RHMCOh/zpfw+vPnZQ2mG+21HvtJ/Te1qq+VmTDnU8UTT9Lnc6RmJQ/tZZ9g kr10DM1RcnaIGnjTDCi8PqzlAqXDJNape80xDVt8z2rpM80tUKLLZENvyYl+sMuBh4 H3CRj4r3e67AdWMkuZKsCsUv7XeCcfzw5ci8ZVLBPj3PNVXIEYUxZjxydV5nMMv68p c/0RBienkU14hNnv9ebQdCpTrmc+KVaVgB7bGNfQXlMpS2BlzUnFAKpoOB1cd7OZau lVCpdIGYM8e4MYoyxG1OPVzgsbJMqn4rmbxWK7OSgkBoSHD68L+o7XPNhdx1ZEQvHC MW/jKVFMaQ+kQ== Received: from lain.khirnov.net (lain.khirnov.net [IPv6:2001:67c:1138:4306::3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "lain.khirnov.net", Issuer "smtp.khirnov.net SMTP CA" (verified OK)) by mail0.khirnov.net (Postfix) with ESMTPS id A8130240695 for ; Sat, 13 Jul 2024 15:47:33 +0200 (CEST) Received: by lain.khirnov.net (Postfix, from userid 1000) id 981D81601B9; Sat, 13 Jul 2024 15:47:33 +0200 (CEST) From: Anton Khirnov To: FFmpeg development discussions and patches In-Reply-To: <20240712003307.64005-2-jamrial@gmail.com> References: <20240712003307.64005-1-jamrial@gmail.com> <20240712003307.64005-2-jamrial@gmail.com> Mail-Followup-To: FFmpeg development discussions and patches Date: Sat, 13 Jul 2024 15:47:33 +0200 Message-ID: <172087845360.21847.8260743025610001929@lain.khirnov.net> User-Agent: alot/0.8.1 MIME-Version: 1.0 Subject: Re: [FFmpeg-devel] [PATCH 2/2] avcodec/bsf/showinfo: print packet data checksum 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: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Archived-At: List-Archive: List-Post: Quoting James Almer (2024-07-12 02:33:07) > Signed-off-by: James Almer > --- > libavcodec/bsf/showinfo.c | 6 +++++- > 1 file changed, 5 insertions(+), 1 deletion(-) > > diff --git a/libavcodec/bsf/showinfo.c b/libavcodec/bsf/showinfo.c > index 0899263545..57da3fc73c 100644 > --- a/libavcodec/bsf/showinfo.c > +++ b/libavcodec/bsf/showinfo.c > @@ -23,6 +23,7 @@ > #include "bsf.h" > #include "bsf_internal.h" > > +#include "libavutil/adler32.h" > #include "libavutil/internal.h" > #include "libavutil/log.h" > #include "libavutil/timestamp.h" > @@ -34,22 +35,25 @@ typedef struct ShowinfoContext { > static int showinfo_filter(AVBSFContext *ctx, AVPacket *pkt) > { > ShowinfoContext *priv = ctx->priv_data; > + uint32_t crc; > int ret; > > ret = ff_bsf_get_packet_ref(ctx, pkt); > if (ret < 0) > return ret; > > + crc = av_adler32_update(0, pkt->data, pkt->size); > av_log(ctx, AV_LOG_INFO, > "n:%7"PRIu64" " > "size:%7d " > "pts:%s pt:%s " > "dts:%s dt:%s " > "ds:%"PRId64" d:%s " > + "0x%08"PRIx32, could you prefix it with checksum: or something, so it's clear what it means? -- Anton Khirnov _______________________________________________ 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".