* [FFmpeg-devel] [PR] avcodec/mlp: don't duplicate the AV_CRC_8_EBU table (PR #21508)
@ 2026-01-19 3:21 James Almer via ffmpeg-devel
0 siblings, 0 replies; only message in thread
From: James Almer via ffmpeg-devel @ 2026-01-19 3:21 UTC (permalink / raw)
To: ffmpeg-devel; +Cc: James Almer
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2026-01-19 3:21 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-01-19 3:21 [FFmpeg-devel] [PR] avcodec/mlp: don't duplicate the AV_CRC_8_EBU table (PR #21508) James Almer via ffmpeg-devel
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