Skip to content
Snippets Groups Projects
Commit 9d02db7a authored by Fabrice Bellard's avatar Fabrice Bellard
Browse files

fix got_picture output

Originally committed as revision 99 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent bf89e6b1
No related branches found
No related tags found
No related merge requests found
...@@ -875,11 +875,11 @@ static int mjpeg_decode_frame(AVCodecContext *avctx, ...@@ -875,11 +875,11 @@ static int mjpeg_decode_frame(AVCodecContext *avctx,
int len, code, start_code, input_size, i; int len, code, start_code, input_size, i;
AVPicture *picture = data; AVPicture *picture = data;
*data_size = 0;
/* no supplementary picture */ /* no supplementary picture */
if (buf_size == 0) { if (buf_size == 0)
*data_size = 0;
return 0; return 0;
}
buf_ptr = buf; buf_ptr = buf;
buf_end = buf + buf_size; buf_end = buf + buf_size;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment