PR #25114 opened by JakaBac
URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/25114
Patch URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/25114.patch

CID 1271 (DNxHR HQX) uses incorrect luma and chroma weight tables. 
Currently is uses tables from CID 1241 (marked D.4 in the standard) which is 
for interlaced media. 
It should use tables for CID 1235 (marked D.1).

<!--
If this PR requires new FATE test samples, attach them to the PR and
list their target paths below (relative to the fate-suite root).

Attached filenames must match the sample's filename:

```fate-samples
# e.g. vorbis/new-sample.ogg
```
-->



>From 8c771cf3646c3adf643c7917007412ce363b1265 Mon Sep 17 00:00:00 2001
From: Jaka Bac <[email protected]>
Date: Thu, 15 Oct 2026 16:01:12 +0200
Subject: [PATCH] Fix incorrect luma and chroma weight table usage for CID 1271

---
 libavcodec/dnxhddata.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/dnxhddata.c b/libavcodec/dnxhddata.c
index ce06d77f18..3d113abfdb 100644
--- a/libavcodec/dnxhddata.c
+++ b/libavcodec/dnxhddata.c
@@ -1049,7 +1049,7 @@ static const CIDEntry dnxhd_cid_table[] = {
       { 0 }, { 57344, 255} },
     { 1271, DNXHD_VARIABLE, DNXHD_VARIABLE, DNXHD_VARIABLE, DNXHD_VARIABLE,
       0, 6, DNXHD_VARIABLE, 4,
-      dnxhd_1241_luma_weight, dnxhd_1241_chroma_weight,
+      dnxhd_1235_luma_weight, dnxhd_1235_chroma_weight,
       dnxhd_1235_dc_codes, dnxhd_1235_dc_bits,
       dnxhd_1235_ac_codes, dnxhd_1235_ac_bits, dnxhd_1235_ac_info,
       dnxhd_1235_run_codes, dnxhd_1235_run_bits, dnxhd_1235_run,
-- 
2.54.0

_______________________________________________
ffmpeg-devel mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to