This is an automated email from the git hooks/post-receive script.
Git pushed a commit to branch master
in repository ffmpeg.
The following commit(s) were added to refs/heads/master by this push:
new c98346ffaa avcodec/libtheoraenc: make keyframe mask unsigned and
handle its larger range
c98346ffaa is described below
commit c98346ffaaa101024d45b1262f34c05fdc074349
Author: Michael Niedermayer <[email protected]>
AuthorDate: Sat Feb 21 02:12:03 2026 +0100
Commit: michaelni <[email protected]>
CommitDate: Sat Feb 21 22:43:41 2026 +0000
avcodec/libtheoraenc: make keyframe mask unsigned and handle its larger
range
Fixes: left shift of 1 by 31 places cannot be represented in type 'int'
Fixes:
473579864/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_LIBTHEORA_fuzzer-5835688160591872
Found-by: continuous fuzzing process
https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <[email protected]>
---
libavcodec/libtheoraenc.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/libavcodec/libtheoraenc.c b/libavcodec/libtheoraenc.c
index 2b70ec06a6..e089fe8f5b 100644
--- a/libavcodec/libtheoraenc.c
+++ b/libavcodec/libtheoraenc.c
@@ -53,7 +53,7 @@ typedef struct TheoraContext {
int stats_offset;
int uv_hshift;
int uv_vshift;
- int keyframe_mask;
+ unsigned keyframe_mask;
int speed_level;
} TheoraContext;
@@ -249,7 +249,7 @@ static av_cold int encode_init(AVCodecContext* avc_context)
return AVERROR_EXTERNAL;
}
- h->keyframe_mask = (1 << av_ceil_log2(avc_context->gop_size)) - 1;
+ h->keyframe_mask = (1U << av_ceil_log2(avc_context->gop_size)) - 1;
/* Clear up theora_info struct */
th_info_clear(&t_info);
_______________________________________________
ffmpeg-cvslog mailing list -- [email protected]
To unsubscribe send an email to [email protected]