mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-12-11 17:30:00 +01:00
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 88f0e05c72)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
@@ -223,8 +223,6 @@ static int decode_frame(AVCodecContext *avctx,
|
|||||||
run = bytestream2_get_le16(&s->g);
|
run = bytestream2_get_le16(&s->g);
|
||||||
val = bytestream2_get_byte(&s->g);
|
val = bytestream2_get_byte(&s->g);
|
||||||
}
|
}
|
||||||
if (!bytestream2_get_bytes_left(&s->g))
|
|
||||||
break;
|
|
||||||
|
|
||||||
if (bits_per_plane == 8) {
|
if (bits_per_plane == 8) {
|
||||||
picmemset_8bpp(s, frame, val, run, &x, &y);
|
picmemset_8bpp(s, frame, val, run, &x, &y);
|
||||||
|
|||||||
Reference in New Issue
Block a user