avcodec/pictordec: Remove mid exit branch

This causes the RLE decoder to exit before applying the last RLE run
All images i tested with are unchanged, this makes the special case
for handling the last run unused for non truncated images.

Reviewed-by: Peter Ross <pross@xvid.org>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
pull/388/head
Michael Niedermayer 2 years ago
parent 74b6ac7ebb
commit 88f0e05c72
No known key found for this signature in database
GPG Key ID: B18E8928B3948D64
  1. 2
      libavcodec/pictordec.c

@ -262,8 +262,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);

Loading…
Cancel
Save