diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2025-06-12 21:28:03 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2025-06-21 22:08:51 +0200 |
commit | 1fe08d629a27cc5a71a4a52105121a1e64d66ce8 (patch) | |
tree | 4dffffbd07a2477430e8a6999bd8aa19ab28068a | |
parent | 109bf099d52999cbbe61fde0e3b5bde3ff767da3 (diff) | |
download | ffmpeg-1fe08d629a27cc5a71a4a52105121a1e64d66ce8.tar.gz |
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.rheinhardt@outlook.com>
-rw-r--r-- | libavcodec/svq1enc.c | 1 |
1 files changed, 0 insertions, 1 deletions
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; } } |