diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2005-01-23 18:09:06 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2005-01-23 18:09:06 +0000 |
commit | 934982c4ace1a3d5d627b518782ed092a456c49e (patch) | |
tree | 2710f7ff4b0238136300d02da7baf234ed48cc01 /libavcodec/mjpeg.c | |
parent | 884182b383ed8b70a67634dc7f91395c402b58d7 (diff) | |
download | ffmpeg-934982c4ace1a3d5d627b518782ed092a456c49e.tar.gz |
avoid buf_size == 0 checks in every decoder
Originally committed as revision 3872 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/mjpeg.c')
-rw-r--r-- | libavcodec/mjpeg.c | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/libavcodec/mjpeg.c b/libavcodec/mjpeg.c index 2edd90bd43..6ea01b3b84 100644 --- a/libavcodec/mjpeg.c +++ b/libavcodec/mjpeg.c @@ -1826,10 +1826,6 @@ static int mjpeg_decode_frame(AVCodecContext *avctx, int start_code; AVFrame *picture = data; - /* no supplementary picture */ - if (buf_size == 0) - return 0; - buf_ptr = buf; buf_end = buf + buf_size; while (buf_ptr < buf_end) { @@ -2002,10 +1998,6 @@ static int mjpegb_decode_frame(AVCodecContext *avctx, uint32_t dqt_offs, dht_offs, sof_offs, sos_offs, second_field_offs; uint32_t field_size, sod_offs; - /* no supplementary picture */ - if (buf_size == 0) - return 0; - buf_ptr = buf; buf_end = buf + buf_size; @@ -2115,10 +2107,6 @@ static int sp5x_decode_frame(AVCodecContext *avctx, uint8_t *buf_ptr, *buf_end, *recoded; int i = 0, j = 0; - /* no supplementary picture */ - if (buf_size == 0) - return 0; - if (!avctx->width || !avctx->height) return -1; |