Browse Source

fix got_picture output

Originally committed as revision 99 to svn://svn.ffmpeg.org/ffmpeg/trunk
tags/v0.5
Fabrice Bellard 24 years ago
parent
commit
9d02db7a17
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      libavcodec/mjpeg.c

+ 3
- 3
libavcodec/mjpeg.c View File

@@ -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;


Loading…
Cancel
Save