diff options
author | Michael Niedermayer <michael@niedermayer.cc> | 2022-11-25 14:29:32 +0100 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2023-06-04 20:18:15 +0200 |
commit | 07dd5b4d6978538fda541838742a6ecc2ddaf1a3 (patch) | |
tree | a4049be914fcbdac9260657566403084b148286d /libavcodec/pictordec.c | |
parent | 1552773f07565321648cfee1ee4d4108927670c4 (diff) | |
download | ffmpeg-07dd5b4d6978538fda541838742a6ecc2ddaf1a3.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>
Diffstat (limited to 'libavcodec/pictordec.c')
-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 b29a484534..42fbf9489b 100644 --- a/libavcodec/pictordec.c +++ b/libavcodec/pictordec.c @@ -223,8 +223,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); |