Commit de9fc0e9 authored by Michael Niedermayer's avatar Michael Niedermayer

mjpegdec: make sure ret is set before its used.

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 761aba68
......@@ -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;
......
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