diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2014-05-20 02:21:07 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-05-20 02:21:07 +0200 |
commit | 8408720453d73c0f5bad40297dbc47557228b197 (patch) | |
tree | f8be078546889fea96208821f86157ee062f5e01 | |
parent | 0739614c9c48983e9686ab331ada72367e16b9de (diff) | |
download | ffmpeg-8408720453d73c0f5bad40297dbc47557228b197.tar.gz |
avcodec/smvjpegdec: Dont ignore avcodec_close() return code
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r-- | libavcodec/smvjpegdec.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libavcodec/smvjpegdec.c b/libavcodec/smvjpegdec.c index a4125f17b5..69327cd798 100644 --- a/libavcodec/smvjpegdec.c +++ b/libavcodec/smvjpegdec.c @@ -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 = { |