aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/8svx.c
diff options
context:
space:
mode:
authorNicolas George <nicolas.george@normalesup.org>2012-07-31 18:34:45 +0200
committerMichael Niedermayer <michaelni@gmx.at>2012-10-03 01:45:27 +0200
commit72f10d54734f3e5d004a6297e550aa7405059216 (patch)
treef689f2664748058e55b43bec28ba32af8e906db9 /libavcodec/8svx.c
parentf077e1fb4c912a66ab5d766fd256803821d92c67 (diff)
downloadffmpeg-72f10d54734f3e5d004a6297e550aa7405059216.tar.gz
8svx: copy start value in output samples.
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>
Diffstat (limited to 'libavcodec/8svx.c')
-rw-r--r--libavcodec/8svx.c1
1 files changed, 1 insertions, 0 deletions
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;