avcodec/smvjpegdec: remove uninitialized ret
authorLimin Wang <lance.lmwang@gmail.com>
Fri, 12 Jun 2020 23:50:22 +0000 (07:50 +0800)
committerLimin Wang <lance.lmwang@gmail.com>
Sun, 14 Jun 2020 13:54:40 +0000 (21:54 +0800)
Signed-off-by: Limin Wang <lance.lmwang@gmail.com>
libavcodec/smvjpegdec.c

index 209f3ff..973a911 100644 (file)
@@ -79,13 +79,12 @@ static av_cold int smvjpeg_decode_end(AVCodecContext *avctx)
 {
     SMVJpegDecodeContext *s = avctx->priv_data;
     MJpegDecodeContext *jpg = &s->jpg;
-    int ret;
 
     jpg->picture_ptr = NULL;
     av_frame_free(&s->picture[0]);
     av_frame_free(&s->picture[1]);
     avcodec_free_context(&s->avctx);
-    return ret;
+    return 0;
 }
 
 static av_cold int smvjpeg_decode_init(AVCodecContext *avctx)