diff --git a/libavcodec/pictordec.c b/libavcodec/pictordec.c index ed0292c797..971d0a8544 100644 --- a/libavcodec/pictordec.c +++ b/libavcodec/pictordec.c @@ -243,8 +243,6 @@ static int decode_frame(AVCodecContext *avctx, AVFrame *frame, run = bytestream2_get_le16(&s->g); val = bytestream2_get_byte(&s->g); } - if (!bytestream2_get_bytes_left(&s->g)) - break; if (bits_per_plane == 8) { picmemset_8bpp(s, frame, val, run, &x, &y);