diff mbox series

[FFmpeg-devel,4/4] avcodec/smvjpegdec: remove uninitialized ret

Message ID 1592060430-3383-4-git-send-email-lance.lmwang@gmail.com
State Accepted
Headers show
Series Untitled series #1480
Related show

Commit Message

Limin Wang June 13, 2020, 3 p.m. UTC
From: Limin Wang <lance.lmwang@gmail.com>

Signed-off-by: Limin Wang <lance.lmwang@gmail.com>
---
 libavcodec/smvjpegdec.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

Comments

Michael Niedermayer June 14, 2020, 2:26 p.m. UTC | #1
On Sat, Jun 13, 2020 at 11:00:30PM +0800, lance.lmwang@gmail.com wrote:
> From: Limin Wang <lance.lmwang@gmail.com>
> 
> Signed-off-by: Limin Wang <lance.lmwang@gmail.com>
> ---
>  libavcodec/smvjpegdec.c | 3 +--
>  1 file changed, 1 insertion(+), 2 deletions(-)

ok
also, if this affects any release branches then please backport to them

thx

[...]
diff mbox series

Patch

diff --git a/libavcodec/smvjpegdec.c b/libavcodec/smvjpegdec.c
index 209f3ff..973a911 100644
--- a/libavcodec/smvjpegdec.c
+++ b/libavcodec/smvjpegdec.c
@@ -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)