[FFmpeg-cvslog] avcodec/mss3: Remove unnecessary free of unallocated frame
Andreas Rheinhardt
git at videolan.org
Sun Aug 30 04:43:53 EEST 2020
ffmpeg | branch: master | Andreas Rheinhardt <andreas.rheinhardt at gmail.com> | Sat Aug 29 08:49:45 2020 +0200| [c1d3b4705e2a6102416f5c53e83ad57ac6388390] | committer: Andreas Rheinhardt
avcodec/mss3: Remove unnecessary free of unallocated frame
The frame will only be allocated a few lines below.
Reviewed-by: Paul B Mahol <onemda at gmail.com>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at gmail.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=c1d3b4705e2a6102416f5c53e83ad57ac6388390
---
libavcodec/mss3.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/libavcodec/mss3.c b/libavcodec/mss3.c
index 113af5ba37..a301675ec2 100644
--- a/libavcodec/mss3.c
+++ b/libavcodec/mss3.c
@@ -844,7 +844,6 @@ static av_cold int mss3_decode_init(AVCodecContext *avctx)
b_width * b_height);
if (!c->dct_coder[i].prev_dc) {
av_log(avctx, AV_LOG_ERROR, "Cannot allocate buffer\n");
- av_frame_free(&c->pic);
while (i >= 0) {
av_freep(&c->dct_coder[i].prev_dc);
i--;
More information about the ffmpeg-cvslog
mailing list