This is an automated email from the git hooks/post-receive script. Git pushed a commit to branch master in repository ffmpeg.
commit de3f99d74b916ea8363f2c81ca343980844f6031 Author: Andreas Rheinhardt <[email protected]> AuthorDate: Fri Jan 30 13:24:06 2026 +0100 Commit: Andreas Rheinhardt <[email protected]> CommitDate: Fri Jan 30 13:24:06 2026 +0100 avformat/cafenc: Truncate values for avio_w8() Fixes triggering av_assert2() in avio_w8(). Signed-off-by: Andreas Rheinhardt <[email protected]> --- libavformat/cafenc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libavformat/cafenc.c b/libavformat/cafenc.c index 3a3493717d..5f2d79e0a7 100644 --- a/libavformat/cafenc.c +++ b/libavformat/cafenc.c @@ -311,7 +311,7 @@ static int caf_write_trailer(AVFormatContext *s) for (int j = 4; j > 0; j--) { unsigned top = caf->byte_size_buffer[i] >> j * 7; if (top) { - avio_w8(pb, 128 | top); + avio_w8(pb, 128 | (uint8_t)top); size++; } } @@ -322,7 +322,7 @@ static int caf_write_trailer(AVFormatContext *s) for (int j = 4; j > 0; j--) { unsigned top = caf->frame_size_buffer[i] >> j * 7; if (top) { - avio_w8(pb, 128 | top); + avio_w8(pb, 128 | (uint8_t)top); size++; } } _______________________________________________ ffmpeg-cvslog mailing list -- [email protected] To unsubscribe send an email to [email protected]
