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/pnm.c | 5 ----- 1 file changed, 5 deletions(-) (limited to 'libavcodec/pnm.c') diff --git a/libavcodec/pnm.c b/libavcodec/pnm.c index 51134ce370..3751d114aa 100644 --- a/libavcodec/pnm.c +++ b/libavcodec/pnm.c @@ -165,11 +165,6 @@ static int pnm_decode_frame(AVCodecContext *avctx, int i, n, linesize, h; unsigned char *ptr; - /* special case for last picture */ - if (buf_size == 0) { - return 0; - } - s->bytestream_start= s->bytestream= buf; s->bytestream_end= buf + buf_size; -- cgit v1.2.3