From 72f10d54734f3e5d004a6297e550aa7405059216 Mon Sep 17 00:00:00 2001 From: Nicolas George Date: Tue, 31 Jul 2012 18:34:45 +0200 Subject: 8svx: copy start value in output samples. Otherwise, the last byte of each stream is left uninitialized. Signed-off-by: Nicolas George Signed-off-by: Michael Niedermayer --- libavcodec/8svx.c | 1 + 1 file changed, 1 insertion(+) (limited to 'libavcodec/8svx.c') diff --git a/libavcodec/8svx.c b/libavcodec/8svx.c index 87653a8046..1b03ba1d4e 100644 --- a/libavcodec/8svx.c +++ b/libavcodec/8svx.c @@ -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; -- cgit v1.2.3