diff mbox series

[FFmpeg-devel] avformat/vvc: initialize some ptl flags

Message ID 20240519131225.36-1-jamrial@gmail.com
State Accepted
Commit 3bd7e3a336822c75865930f7fafb36d1a1c4c3c3
Headers show
Series [FFmpeg-devel] avformat/vvc: initialize some ptl flags | expand

Checks

Context Check Description
yinshiyou/make_loongarch64 success Make finished
yinshiyou/make_fate_loongarch64 fail Make fate failed
andriy/make_x86 success Make finished
andriy/make_fate_x86 fail Make fate failed

Commit Message

James Almer May 19, 2024, 1:12 p.m. UTC
Otherwise they will always be 0 when ANDed in vvcc_update_ptl().

Signed-off-by: James Almer <jamrial@gmail.com>
---
 libavformat/vvc.c           | 2 ++
 tests/ref/lavf-fate/vvc.mp4 | 2 +-
 2 files changed, 3 insertions(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/libavformat/vvc.c b/libavformat/vvc.c
index 449c933881..34c0aaf58b 100644
--- a/libavformat/vvc.c
+++ b/libavformat/vvc.c
@@ -565,6 +565,8 @@  static void vvcc_init(VVCDecoderConfigurationRecord *vvcc)
 {
     memset(vvcc, 0, sizeof(VVCDecoderConfigurationRecord));
     vvcc->lengthSizeMinusOne = 3;       // 4 bytes
+    vvcc->ptl.ptl_frame_only_constraint_flag =
+    vvcc->ptl.ptl_multilayer_enabled_flag = 1;
 }
 
 static void vvcc_close(VVCDecoderConfigurationRecord *vvcc)
diff --git a/tests/ref/lavf-fate/vvc.mp4 b/tests/ref/lavf-fate/vvc.mp4
index 240715884b..b237fe18cb 100644
--- a/tests/ref/lavf-fate/vvc.mp4
+++ b/tests/ref/lavf-fate/vvc.mp4
@@ -1,3 +1,3 @@ 
-30b856d289220b477b5a0935f60aa793 *tests/data/lavf-fate/lavf.vvc.mp4
+b5d5939890d3246475f990e5ebd58dc8 *tests/data/lavf-fate/lavf.vvc.mp4
 16625 tests/data/lavf-fate/lavf.vvc.mp4
 tests/data/lavf-fate/lavf.vvc.mp4 CRC=0x895790b1