From 99f40fd02f1870c2dee70977b672da9cb198f0be Mon Sep 17 00:00:00 2001 From: Vittorio Giovara Date: Fri, 20 Nov 2015 02:17:31 +0100 Subject: sgienc: Do not end RLE lines with 0s This is never mentioned in the specifications, and decoders work just as fine without it. Update the fate references since the compressed file is smaller. Signed-off-by: Vittorio Giovara --- libavcodec/sgienc.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'libavcodec/sgienc.c') diff --git a/libavcodec/sgienc.c b/libavcodec/sgienc.c index b88f6c3843..e7aa394069 100644 --- a/libavcodec/sgienc.c +++ b/libavcodec/sgienc.c @@ -171,8 +171,7 @@ FF_ENABLE_DEPRECATION_WARNINGS } buf += length; - bytestream_put_byte(&buf, 0); - bytestream_put_be32(&lengthtab, length + 1); + bytestream_put_be32(&lengthtab, length); in_buf -= p->linesize[0]; } } -- cgit v1.2.3