Git Inbox Mirror of the ffmpeg-devel mailing list - see https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
 help / color / mirror / Atom feed
From: James Almer via ffmpeg-devel <ffmpeg-devel@ffmpeg.org>
To: ffmpeg-devel@ffmpeg.org
Cc: James Almer <code@ffmpeg.org>
Subject: [FFmpeg-devel] [PR] avcodec/mlp: don't duplicate the AV_CRC_8_EBU table (PR #21508)
Date: Mon, 19 Jan 2026 03:21:26 -0000
Message-ID: <176879288688.25.15693439707943620328@4457048688e7> (raw)

PR #21508 opened by James Almer (jamrial)
URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/21508
Patch URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/21508.patch


>From be989da066c89e0037eede08ed7186402ee67241 Mon Sep 17 00:00:00 2001
From: James Almer <jamrial@gmail.com>
Date: Mon, 19 Jan 2026 00:19:45 -0300
Subject: [PATCH] avcodec/mlp: don't duplicate the AV_CRC_8_EBU table

Signed-off-by: James Almer <jamrial@gmail.com>
---
 libavcodec/mlp.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/libavcodec/mlp.c b/libavcodec/mlp.c
index 8ea6e6d72e..cebf0fe4bf 100644
--- a/libavcodec/mlp.c
+++ b/libavcodec/mlp.c
@@ -69,14 +69,14 @@ const AVChannelLayout ff_mlp_ch_layouts[12] = {
 #else
 #define CRC_TABLE_SIZE 1024
 #endif
+static const AVCRC *crc_1D;
 static AVCRC crc_63[CRC_TABLE_SIZE];
-static AVCRC crc_1D[CRC_TABLE_SIZE];
 static AVCRC crc_2D[CRC_TABLE_SIZE];
 
 static av_cold void mlp_init_crc(void)
 {
+    crc_1D = av_crc_get_table(AV_CRC_8_EBU);
     av_crc_init(crc_63, 0,  8,   0x63, sizeof(crc_63));
-    av_crc_init(crc_1D, 0,  8,   0x1D, sizeof(crc_1D));
     av_crc_init(crc_2D, 0, 16, 0x002D, sizeof(crc_2D));
 }
 
-- 
2.52.0

_______________________________________________
ffmpeg-devel mailing list -- ffmpeg-devel@ffmpeg.org
To unsubscribe send an email to ffmpeg-devel-leave@ffmpeg.org

                 reply	other threads:[~2026-01-19  3:21 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=176879288688.25.15693439707943620328@4457048688e7 \
    --to=ffmpeg-devel@ffmpeg.org \
    --cc=code@ffmpeg.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

Git Inbox Mirror of the ffmpeg-devel mailing list - see https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

This inbox may be cloned and mirrored by anyone:

	git clone --mirror https://master.gitmailbox.com/ffmpegdev/0 ffmpegdev/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 ffmpegdev ffmpegdev/ https://master.gitmailbox.com/ffmpegdev \
		ffmpegdev@gitmailbox.com
	public-inbox-index ffmpegdev

Example config snippet for mirrors.


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git