summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2022-11-25 14:29:32 +0100
committerMichael Niedermayer <michael@niedermayer.cc>2023-02-22 19:49:17 +0100
commit2953c6381afc3d52f3c97692228a5120fad4e0dd (patch)
treedb0e30d0eae99c385246889a7455f22835b861f1
parent9057d347481711348442879304090bc65635eeec (diff)
downloadffmpeg-2953c6381afc3d52f3c97692228a5120fad4e0dd.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.c2
1 files changed, 0 insertions, 2 deletions
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);