Git Inbox Mirror of the ffmpeg-devel mailing list - see https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
 help / color / mirror / Atom feed
* [FFmpeg-devel] [PATCH] avformat/vvc: initialize some ptl flags
@ 2024-05-19 13:12 James Almer
  0 siblings, 0 replies; only message in thread
From: James Almer @ 2024-05-19 13:12 UTC (permalink / raw)
  To: ffmpeg-devel

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 --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
-- 
2.45.1

_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

To unsubscribe, visit link above, or email
ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2024-05-19 13:12 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-05-19 13:12 [FFmpeg-devel] [PATCH] avformat/vvc: initialize some ptl flags James Almer

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