ffmpeg | branch: master | Derek Buitenhuis <derek.buitenh...@gmail.com> | Fri Jun 6 14:43:09 2025 +0100| [be46370941405fb04402d96373a53e2a1846f3ac] | committer: Derek Buitenhuis
avformat/dhav: Add missed free for end_buffer Accidentally left out of 36ec9217e6dca3432304c9d76078d9618247eb0f. Found-by: Kacper Michajłow <kaspe...@gmail.com> Signed-off-by: Derek Buitenhuis <derek.buitenh...@gmail.com> > http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=be46370941405fb04402d96373a53e2a1846f3ac --- libavformat/dhav.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libavformat/dhav.c b/libavformat/dhav.c index 31f4d75181..c7e5371636 100644 --- a/libavformat/dhav.c +++ b/libavformat/dhav.c @@ -281,6 +281,7 @@ static int64_t get_duration(AVFormatContext *s) } if (end_pos < 0 || end_pos + 16 > end_buffer_pos + end_buffer_size) { + av_freep(&end_buffer); avio_seek(s->pb, start_pos, SEEK_SET); return 0; } @@ -289,6 +290,8 @@ static int64_t get_duration(AVFormatContext *s) get_timeinfo(date, &timeinfo); end = av_timegm(&timeinfo) * 1000LL; + av_freep(&end_buffer); + avio_seek(s->pb, start_pos, SEEK_SET); return end - start; _______________________________________________ ffmpeg-cvslog mailing list ffmpeg-cvslog@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog To unsubscribe, visit link above, or email ffmpeg-cvslog-requ...@ffmpeg.org with subject "unsubscribe".