ffmpeg | branch: master | Andreas Rheinhardt <andreas.rheinha...@outlook.com> | Thu Jun 12 21:28:03 2025 +0200| [1fe08d629a27cc5a71a4a52105121a1e64d66ce8] | committer: Andreas Rheinhardt
avcodec/svq1enc: Don't free scratchbuf upon error Forgotten in 65015003f5c4b83a8202abfa7420ccf37cde6ce3; after said commit, freeing scratchbuf on error in svq1_encode_frame() could lead to segfaults lateron, because the buffer will not be allocated again. Signed-off-by: Andreas Rheinhardt <andreas.rheinha...@outlook.com> > http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=1fe08d629a27cc5a71a4a52105121a1e64d66ce8 --- libavcodec/svq1enc.c | 1 - 1 file changed, 1 deletion(-) diff --git a/libavcodec/svq1enc.c b/libavcodec/svq1enc.c index 3b8738c14f..dae931fb10 100644 --- a/libavcodec/svq1enc.c +++ b/libavcodec/svq1enc.c @@ -681,7 +681,6 @@ static int svq1_encode_frame(AVCodecContext *avctx, AVPacket *pkt, av_freep(&s->motion_val8[j]); av_freep(&s->motion_val16[j]); } - av_freep(&s->scratchbuf); return -1; } } _______________________________________________ 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".