Skip to content
Snippets Groups Projects
Commit 72f10d54 authored by Nicolas George's avatar Nicolas George Committed by Michael Niedermayer
Browse files

8svx: copy start value in output samples.


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

Signed-off-by: default avatarNicolas George <nicolas.george@normalesup.org>
Signed-off-by: default avatarMichael Niedermayer <michaelni@gmx.at>
parent f077e1fb
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
e76b025238a6a27968f8644f4ccc3207
96a20cd1fae705cbc11eee5d6046b8e4
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment