summaryrefslogtreecommitdiff
path: root/libavcodec/mjpeg.c
diff options
context:
space:
mode:
authorFabrice Bellard <fabrice@bellard.org>2001-08-15 13:10:39 +0000
committerFabrice Bellard <fabrice@bellard.org>2001-08-15 13:10:39 +0000
commit9d02db7a176e41eeb1ef547143b9bcfe005dae9e (patch)
treed34724cf24687c505526631a3fcb8e31349d5ca6 /libavcodec/mjpeg.c
parentbf89e6b1f9595f47c1a6fda005ba6e4b14613839 (diff)
fix got_picture output
Originally committed as revision 99 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/mjpeg.c')
-rw-r--r--libavcodec/mjpeg.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libavcodec/mjpeg.c b/libavcodec/mjpeg.c
index 7410583f18..1103e11d04 100644
--- a/libavcodec/mjpeg.c
+++ b/libavcodec/mjpeg.c
@@ -875,11 +875,11 @@ static int mjpeg_decode_frame(AVCodecContext *avctx,
int len, code, start_code, input_size, i;
AVPicture *picture = data;
+ *data_size = 0;
+
/* no supplementary picture */
- if (buf_size == 0) {
- *data_size = 0;
+ if (buf_size == 0)
return 0;
- }
buf_ptr = buf;
buf_end = buf + buf_size;