This is an automated email from the git hooks/post-receive script. Git pushed a commit to branch master in repository ffmpeg.
commit 5e69e6d49c95ebe8e31849b28cea16894fd23e2e Author: Andreas Rheinhardt <[email protected]> AuthorDate: Thu Apr 16 16:55:06 2026 +0200 Commit: Andreas Rheinhardt <[email protected]> CommitDate: Mon Apr 20 12:54:31 2026 +0200 avformat/pdvenc: Don't silently truncate value This muxer seems to intend to support output that does not begin at zero (instead of e.g. just hardcoding nb_frames_pos to 16). But then it is possible that avio_seek() returns values > INT_MAX even though the part of the file written by us can not exceed this value. So the return value of avio_seek() needs to be checked as 64bit integer and not silently truncated to int. Signed-off-by: Andreas Rheinhardt <[email protected]> --- libavformat/pdvenc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/pdvenc.c b/libavformat/pdvenc.c index 324c2dfb8a..4f70fd3ad8 100644 --- a/libavformat/pdvenc.c +++ b/libavformat/pdvenc.c @@ -158,7 +158,7 @@ static int pdv_write_trailer(AVFormatContext *s) PDVMuxContext *pdv = s->priv_data; int64_t payload_size = avio_tell(s->pb); const uint32_t table_gap = 4U * (pdv->max_frames - pdv->nb_frames); - int ret; + int64_t ret; if (payload_size < 0) return AVERROR(EIO); _______________________________________________ ffmpeg-cvslog mailing list -- [email protected] To unsubscribe send an email to [email protected]
