diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-11-27 20:12:07 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-11-27 20:16:49 +0100 |
commit | de9fc0e9d67e02172c2345d6dc6f31629c95f37a (patch) | |
tree | 7fdff82f8d6a614d0f77e4701541bbdf55e62f9c /libavcodec/mjpegdec.c | |
parent | 761aba6811ba51996d9dd24afd9f72110a4499b8 (diff) | |
download | ffmpeg-streaming-de9fc0e9d67e02172c2345d6dc6f31629c95f37a.zip ffmpeg-streaming-de9fc0e9d67e02172c2345d6dc6f31629c95f37a.tar.gz |
mjpegdec: make sure ret is set before its used.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/mjpegdec.c')
-rw-r--r-- | libavcodec/mjpegdec.c | 1 |
1 files changed, 1 insertions, 0 deletions
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; |