summaryrefslogtreecommitdiff
path: root/libavcodec/sgienc.c
diff options
context:
space:
mode:
authorVittorio Giovara <vittorio.giovara@gmail.com>2015-11-20 02:17:31 +0100
committerVittorio Giovara <vittorio.giovara@gmail.com>2015-11-24 09:05:01 -0500
commit99f40fd02f1870c2dee70977b672da9cb198f0be (patch)
tree76868609893462c269326973539655bffc726940 /libavcodec/sgienc.c
parent4d05e9392f84702e3c833efa86e84c7f1cf5f612 (diff)
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 <vittorio.giovara@gmail.com>
Diffstat (limited to 'libavcodec/sgienc.c')
-rw-r--r--libavcodec/sgienc.c3
1 files changed, 1 insertions, 2 deletions
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];
}
}