changeset 68:99cc25b48e24 libavcodec

fix got_picture output
author glantau
date Wed, 15 Aug 2001 13:10:39 +0000
parents cdd89f96cbe1
children 361631a8d140
files mjpeg.c
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/mjpeg.c	Wed Aug 15 13:09:47 2001 +0000
+++ b/mjpeg.c	Wed Aug 15 13:10:39 2001 +0000
@@ -875,11 +875,11 @@
     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;