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 <[email protected]> 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 <[email protected]> --- 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 -- [email protected] To unsubscribe send an email to [email protected]
