From 934982c4ace1a3d5d627b518782ed092a456c49e Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Sun, 23 Jan 2005 18:09:06 +0000 Subject: avoid buf_size == 0 checks in every decoder Originally committed as revision 3872 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/svq1.c | 4 ---- 1 file changed, 4 deletions(-) (limited to 'libavcodec/svq1.c') diff --git a/libavcodec/svq1.c b/libavcodec/svq1.c index c719a8ef22..f5c3c7774a 100644 --- a/libavcodec/svq1.c +++ b/libavcodec/svq1.c @@ -713,10 +713,6 @@ static int svq1_decode_frame(AVCodecContext *avctx, int result, i, x, y, width, height; AVFrame *pict = data; - if(buf==NULL && buf_size==0){ - return 0; - } - /* initialize bit buffer */ init_get_bits(&s->gb,buf,buf_size*8); -- cgit v1.2.3