* [FFmpeg-devel] [PR] avcodec/hevc/ps: add missing check for profile tier level count (PR #21490)
@ 2026-01-16 14:34 James Almer via ffmpeg-devel
0 siblings, 0 replies; only message in thread
From: James Almer via ffmpeg-devel @ 2026-01-16 14:34 UTC (permalink / raw)
To: ffmpeg-devel; +Cc: James Almer
PR #21490 opened by James Almer (jamrial)
URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/21490
Patch URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/21490.patch
Fixes issue #21488.
>From 1b66babd321c2a0759b90be2e1f4d3d25c19103e Mon Sep 17 00:00:00 2001
From: James Almer <jamrial@gmail.com>
Date: Fri, 16 Jan 2026 11:32:45 -0300
Subject: [PATCH] avcodec/hevc/ps: add missing check for profile tier level
count
Fixes issue #21488.
Signed-off-by: James Almer <jamrial@gmail.com>
---
libavcodec/hevc/ps.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/libavcodec/hevc/ps.c b/libavcodec/hevc/ps.c
index 7b9dbbcff8..9f7a61e794 100644
--- a/libavcodec/hevc/ps.c
+++ b/libavcodec/hevc/ps.c
@@ -666,6 +666,7 @@ static int decode_vps_ext(GetBitContext *gb, AVCodecContext *avctx, HEVCVPS *vps
if (vps->vps_num_layer_sets == 1 || default_output_layer_idc == 2)
skip_bits1(gb);
+ if (nb_ptl > 1)
for (int j = 0; j < av_popcount64(vps->ols[1]); j++) {
int ptl_idx = get_bits(gb, av_ceil_log2(nb_ptl));
if (ptl_idx >= nb_ptl) {
--
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-16 14:35 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-01-16 14:34 [FFmpeg-devel] [PR] avcodec/hevc/ps: add missing check for profile tier level count (PR #21490) 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