summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLimin Wang <lance.lmwang@gmail.com>2020-06-13 07:50:22 +0800
committerLimin Wang <lance.lmwang@gmail.com>2020-06-14 21:54:40 +0800
commit01be03a4a0a81464aac1741bd393c09aaa8cc0e5 (patch)
tree0854d34dcfed6793a783697932a21fe9f4a83d8a
parent9bb46cf100be0229eca869a424c6af74306f337f (diff)
avcodec/smvjpegdec: remove uninitialized ret
Signed-off-by: Limin Wang <lance.lmwang@gmail.com>
-rw-r--r--libavcodec/smvjpegdec.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/libavcodec/smvjpegdec.c b/libavcodec/smvjpegdec.c
index 209f3ff334..973a9117f2 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)