Mercurial > libavcodec.hg
comparison mjpeg.c @ 68:99cc25b48e24 libavcodec
fix got_picture output
author | glantau |
---|---|
date | Wed, 15 Aug 2001 13:10:39 +0000 |
parents | 5aa6292a1660 |
children | 0b09bd08ef4b |
comparison
equal
deleted
inserted
replaced
67:cdd89f96cbe1 | 68:99cc25b48e24 |
---|---|
873 MJpegDecodeContext *s = avctx->priv_data; | 873 MJpegDecodeContext *s = avctx->priv_data; |
874 UINT8 *buf_end, *buf_ptr, *buf_start; | 874 UINT8 *buf_end, *buf_ptr, *buf_start; |
875 int len, code, start_code, input_size, i; | 875 int len, code, start_code, input_size, i; |
876 AVPicture *picture = data; | 876 AVPicture *picture = data; |
877 | 877 |
878 *data_size = 0; | |
879 | |
878 /* no supplementary picture */ | 880 /* no supplementary picture */ |
879 if (buf_size == 0) { | 881 if (buf_size == 0) |
880 *data_size = 0; | |
881 return 0; | 882 return 0; |
882 } | |
883 | 883 |
884 buf_ptr = buf; | 884 buf_ptr = buf; |
885 buf_end = buf + buf_size; | 885 buf_end = buf + buf_size; |
886 while (buf_ptr < buf_end) { | 886 while (buf_ptr < buf_end) { |
887 buf_start = buf_ptr; | 887 buf_start = buf_ptr; |