[libav-devel] [PATCH 1/5] sgienc: Do not end RLE lines with 0s

Vittorio Giovara vittorio.giovara at gmail.com
Fri Nov 20 02:17:31 CET 2015


This is never mentioned in the specifications, and decoders work
just as fine without it.

Signed-off-by: Vittorio Giovara <vittorio.giovara at gmail.com>
---
 libavcodec/sgienc.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/libavcodec/sgienc.c b/libavcodec/sgienc.c
index b88f6c3..e7aa394 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];
             }
         }
-- 
2.6.3



More information about the libav-devel mailing list