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/huffyuv.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/huffyuv.c')
-rw-r--r-- | libavcodec/huffyuv.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/libavcodec/huffyuv.c b/libavcodec/huffyuv.c index fbc20ad5e2..ac1a8b2c85 100644 --- a/libavcodec/huffyuv.c +++ b/libavcodec/huffyuv.c @@ -770,10 +770,6 @@ static int decode_frame(AVCodecContext *avctx, void *data, int *data_size, uint8 AVFrame *picture = data; - /* no supplementary picture */ - if (buf_size == 0) - return 0; - s->bitstream_buffer= av_fast_realloc(s->bitstream_buffer, &s->bitstream_buffer_size, buf_size + FF_INPUT_BUFFER_PADDING_SIZE); s->dsp.bswap_buf((uint32_t*)s->bitstream_buffer, (uint32_t*)buf, buf_size/4); |