[FFmpeg-cvslog] mjpegdec: make sure ret is set before its used.
Michael Niedermayer
git at videolan.org
Tue Nov 27 20:20:52 CET 2012
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Tue Nov 27 20:12:07 2012 +0100| [de9fc0e9d67e02172c2345d6dc6f31629c95f37a] | committer: Michael Niedermayer
mjpegdec: make sure ret is set before its used.
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=de9fc0e9d67e02172c2345d6dc6f31629c95f37a
---
libavcodec/mjpegdec.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/libavcodec/mjpegdec.c b/libavcodec/mjpegdec.c
index 915347d..217464e 100644
--- a/libavcodec/mjpegdec.c
+++ b/libavcodec/mjpegdec.c
@@ -1638,6 +1638,7 @@ int ff_mjpeg_decode_frame(AVCodecContext *avctx, void *data, int *data_size,
else if (start_code == COM)
mjpeg_decode_com(s);
+ ret = -1;
switch (start_code) {
case SOI:
s->restart_interval = 0;
More information about the ffmpeg-cvslog
mailing list