summaryrefslogtreecommitdiff
path: root/libavcodec/pnm.c
diff options
context:
space:
mode:
Diffstat (limited to 'libavcodec/pnm.c')
-rw-r--r--libavcodec/pnm.c5
1 files changed, 0 insertions, 5 deletions
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;