[FFmpeg-cvslog] avcodec/smvjpegdec: Dont ignore avcodec_close() return code

Michael Niedermayer git at videolan.org
Tue May 20 02:47:35 CEST 2014


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Tue May 20 02:21:07 2014 +0200| [8408720453d73c0f5bad40297dbc47557228b197] | committer: Michael Niedermayer

avcodec/smvjpegdec: Dont ignore avcodec_close() return code

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=8408720453d73c0f5bad40297dbc47557228b197
---

 libavcodec/smvjpegdec.c |    5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/libavcodec/smvjpegdec.c b/libavcodec/smvjpegdec.c
index a4125f1..69327cd 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 = {



More information about the ffmpeg-cvslog mailing list