This is an automated email from the git hooks/post-receive script. Git pushed a commit to branch master in repository ffmpeg.
commit 0cf187471fd4e96e8609b0ab37125fc51afcd928 Author: Andreas Rheinhardt <[email protected]> AuthorDate: Wed Dec 10 21:03:41 2025 +0100 Commit: Andreas Rheinhardt <[email protected]> CommitDate: Sat Dec 13 05:55:20 2025 +0100 avcodec/hq_hqa: Don't rederive value perm gets incremented in the loop in such a manner that it already has the value it is set to here except for the first loop iteration. Reviewed-by: Marton Balint <[email protected]> Reviewed-by: Lynne <[email protected]> Signed-off-by: Andreas Rheinhardt <[email protected]> --- libavcodec/hq_hqa.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libavcodec/hq_hqa.c b/libavcodec/hq_hqa.c index 61242678b2..664d10c1fc 100644 --- a/libavcodec/hq_hqa.c +++ b/libavcodec/hq_hqa.c @@ -137,7 +137,7 @@ static int hq_decode_frame(HQContext *ctx, AVFrame *pic, GetByteContext *gbc, { const HQProfile *profile; GetBitContext gb; - const uint8_t *perm, *src = gbc->buffer; + const uint8_t *src = gbc->buffer; uint32_t slice_off[21]; int slice, start_off, next_off, i, ret; @@ -168,10 +168,10 @@ static int hq_decode_frame(HQContext *ctx, AVFrame *pic, GetByteContext *gbc, slice_off[i] = bytestream2_get_be24u(gbc) - 4; next_off = 0; + const uint8_t *perm = profile->perm_tab; for (slice = 0; slice < profile->num_slices; slice++) { start_off = next_off; next_off = profile->tab_h * (slice + 1) / profile->num_slices; - perm = profile->perm_tab + start_off * profile->tab_w * 2; if (slice_off[slice] < (profile->num_slices + 1) * 3 || slice_off[slice] >= slice_off[slice + 1] || _______________________________________________ ffmpeg-cvslog mailing list -- [email protected] To unsubscribe send an email to [email protected]
