diff options
author | Michael Niedermayer <michael@niedermayer.cc> | 2022-11-25 14:29:32 +0100 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2023-04-15 22:38:04 +0200 |
commit | b84a46de00d9edf31351d6f0d0c617e5ad536b5a (patch) | |
tree | 3d4ff8a440f591f8fafbb76191524a3aa0306f6d | |
parent | 8488b49faf82d3337ebcabc2d7830f8dadd40d38 (diff) | |
download | ffmpeg-b84a46de00d9edf31351d6f0d0c617e5ad536b5a.tar.gz |
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>
(cherry picked from commit 88f0e05c72f0de0cae3d9f0c5644f1965632b641)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
-rw-r--r-- | libavcodec/pictordec.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/libavcodec/pictordec.c b/libavcodec/pictordec.c index 6340902526..4d81c311c3 100644 --- a/libavcodec/pictordec.c +++ b/libavcodec/pictordec.c @@ -245,8 +245,6 @@ static int decode_frame(AVCodecContext *avctx, 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); |