Mercurial > libavcodec.hg
diff mjpeg.c @ 68:99cc25b48e24 libavcodec
fix got_picture output
author | glantau |
---|---|
date | Wed, 15 Aug 2001 13:10:39 +0000 |
parents | 5aa6292a1660 |
children | 0b09bd08ef4b |
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;