[FFmpeg-devel] [PATCH 3/4] 8svx: copy start value in output samples.

Nicolas George nicolas.george at normalesup.org
Tue Jul 31 18:34:45 CEST 2012


Otherwise, the last byte of each stream is left uninitialized.

Signed-off-by: Nicolas George <nicolas.george at normalesup.org>
---
 libavcodec/8svx.c            |    1 +
 tests/ref/fate/iff-fibonacci |    2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)


Unchanged since last submission.


diff --git a/libavcodec/8svx.c b/libavcodec/8svx.c
index e89b252..c1acc60 100644
--- a/libavcodec/8svx.c
+++ b/libavcodec/8svx.c
@@ -136,6 +136,7 @@ static int eightsvx_decode_frame(AVCodecContext *avctx, void *data,
             /* the uncompressed starting value is contained in the first byte */
             dst = deinterleaved_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;
diff --git a/tests/ref/fate/iff-fibonacci b/tests/ref/fate/iff-fibonacci
index 947f78e..5b93329 100644
--- a/tests/ref/fate/iff-fibonacci
+++ b/tests/ref/fate/iff-fibonacci
@@ -1 +1 @@
-e76b025238a6a27968f8644f4ccc3207
+96a20cd1fae705cbc11eee5d6046b8e4
-- 
1.7.10.4



More information about the ffmpeg-devel mailing list