1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

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>
This commit is contained in:
Nicolas George 2012-07-31 18:34:45 +02:00 committed by Michael Niedermayer
parent f077e1fb4c
commit 72f10d5473
2 changed files with 2 additions and 1 deletions

View 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;

View File

@ -1 +1 @@
e76b025238a6a27968f8644f4ccc3207
96a20cd1fae705cbc11eee5d6046b8e4