avcodec/smvjpegdec: remove uninitialized ret

Signed-off-by: Limin Wang <lance.lmwang@gmail.com>
This commit is contained in:
Limin Wang 2020-06-13 07:50:22 +08:00
parent 9bb46cf100
commit 01be03a4a0
1 changed files with 1 additions and 2 deletions

View 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)