8svx: copy start value in output samples.
authorNicolas George <nicolas.george@normalesup.org>
Tue, 31 Jul 2012 16:34:45 +0000 (18:34 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Tue, 2 Oct 2012 23:45:27 +0000 (01:45 +0200)
Otherwise, the last byte of each stream is left uninitialized.

Signed-off-by: Nicolas George <nicolas.george@normalesup.org>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/8svx.c
tests/ref/fate/iff-fibonacci

index 87653a8..1b03ba1 100644 (file)
@@ -122,6 +122,7 @@ static int eightsvx_decode_frame(AVCodecContext *avctx, void *data,
             /* the uncompressed starting value is contained in the first byte */
             dst = esc->samples;
             for (i = 0; i < avctx->channels; i++) {
+                *(dst++) = buf[0];
                 delta_decode(dst, buf + 1, buf_size / avctx->channels - 1, buf[0], esc->table);
                 buf += buf_size / avctx->channels;
                 dst += n / avctx->channels - 1;
index 947f78e..5b93329 100644 (file)
@@ -1 +1 @@
-e76b025238a6a27968f8644f4ccc3207
+96a20cd1fae705cbc11eee5d6046b8e4