This is an automated email from the git hooks/post-receive script. Git pushed a commit to branch release/9.1 in repository ffmpeg.
commit fbf7c3095c32ba1adee41233ab0292e2cba48ec3 Author: Michael Niedermayer <[email protected]> AuthorDate: Sat Oct 24 06:08:23 2026 +0200 Commit: Michael Niedermayer <[email protected]> CommitDate: Sun Nov 15 02:33:55 2026 +0100 avcodec/hevc/ps: skip the depth lookup table bits in one step Fixes: GPcB3jXFiizH/testcase/final_dear.hevc Fixes: GPcB3jXFiizH Fixes: AISLE-2026-0150-00055 Fixes: excessive CPU time Excessive CPU time Replicated through UnModified FFmpeg with /usr/bin/time Found-by: Joshua Rogers (AISLE) Signed-off-by: Michael Niedermayer <[email protected]> (cherry picked from commit f9f732b444a2fc27dcc4fe52084d3d435f827864) Signed-off-by: Michael Niedermayer <[email protected]> --- libavcodec/hevc/ps.c | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/libavcodec/hevc/ps.c b/libavcodec/hevc/ps.c index c303ae4c13..3341458379 100644 --- a/libavcodec/hevc/ps.c +++ b/libavcodec/hevc/ps.c @@ -1940,11 +1940,10 @@ static void delta_dlt(GetBitContext *gb, HEVCPPS *pps) len = av_log2(max_diff) + 1; min_diff_minus1 = get_bits(gb, len); } - if (max_diff > (min_diff_minus1 + 1)) - for (int k = 1; k < num_val_delta_dlt; k++) { - len = av_log2(max_diff - (min_diff_minus1 + 1)) + 1; - skip_bits(gb, len); // delta_val_diff_minus_min - } + if (max_diff > (min_diff_minus1 + 1)) { + len = av_log2(max_diff - (min_diff_minus1 + 1)) + 1; + skip_bits_long(gb, (num_val_delta_dlt - 1) * len); // delta_val_diff_minus_min + } } } @@ -1960,8 +1959,7 @@ static int pps_3d_extension(GetBitContext *gb, AVCodecContext *avctx, if (get_bits1(gb)) { // dlt_flag[i] if (!get_bits1(gb)) { // dlt_pred_flag[i] if (get_bits1(gb)) { // dlt_val_flags_present_flag[i] - for (int j = 0; j <= ((1 << (pps->pps_bit_depth_for_depth_layers_minus8 + 8)) - 1); j++) - skip_bits1(gb); // dlt_value_flag[i][j] + skip_bits_long(gb, 1 << (pps->pps_bit_depth_for_depth_layers_minus8 + 8)); // dlt_value_flag[i][j] } else delta_dlt(gb, pps); } -- To stop receiving notification emails like this one, please contact [email protected]. _______________________________________________ ffmpeg-cvslog mailing list -- [email protected] To unsubscribe send an email to [email protected]
