# HG changeset patch # User glantau # Date 997881039 0 # Node ID 99cc25b48e24ea85625c611672b8f6651f3bea04 # Parent cdd89f96cbe1bfdef8b533ac45afa159ce528724 fix got_picture output diff -r cdd89f96cbe1 -r 99cc25b48e24 mjpeg.c --- 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;