]> git.sesse.net Git - ffmpeg/commitdiff
sgienc: Do not end RLE lines with 0s
authorVittorio Giovara <vittorio.giovara@gmail.com>
Fri, 20 Nov 2015 01:17:31 +0000 (02:17 +0100)
committerVittorio Giovara <vittorio.giovara@gmail.com>
Tue, 24 Nov 2015 14:05:01 +0000 (09:05 -0500)
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>
libavcodec/sgienc.c
tests/ref/lavf/sgi
tests/ref/seek/lavf-sgi

index b88f6c384346a04335fd26c8ab6dc0c8827ee94f..e7aa394069fae5d7c7296feae434da18548849d3 100644 (file)
@@ -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];
             }
         }
index b0cd303735b0d2f0110ea89c21eace3f299e988f..703b83cf66f0759df9bdcac30ca2b8b38a3440ec 100644 (file)
@@ -1,3 +1,3 @@
-7054acafd275e51cec28d4518e213081 *./tests/data/images/sgi/02.sgi
+d446e540a7c18da5fd3cc0e9942cd46f *./tests/data/images/sgi/02.sgi
 ./tests/data/images/sgi/%02d.sgi CRC=0x28c7369b
-308151 ./tests/data/images/sgi/02.sgi
+307287 ./tests/data/images/sgi/02.sgi
index b2f605ad94ada13d1b3a9a103901ba129a479d6d..04c7b2b1a4f266a871943d5f059fb8bcbd6b9f9c 100644 (file)
@@ -1,4 +1,4 @@
-ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:     -1 size:308336
+ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:     -1 size:307472
 ret:-EINVAL    st:-1 flags:0  ts:-1.000000
 ret:-EINVAL    st:-1 flags:1  ts: 1.894167
 ret:-EINVAL    st: 0 flags:0  ts: 0.800000