Commit 84087204 authored by Michael Niedermayer's avatar Michael Niedermayer

avcodec/smvjpegdec: Dont ignore avcodec_close() return code

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 0739614c
......@@ -180,13 +180,14 @@ 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_close(s->avctx);
ret = avcodec_close(s->avctx);
av_freep(&s->avctx);
return 0;
return ret;
}
static const AVClass smvjpegdec_class = {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment