Skip to content

Commit 72f10d5

Browse files
Nicolas Georgemichaelni
authored andcommitted
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>
1 parent f077e1f commit 72f10d5

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

libavcodec/8svx.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,7 @@ static int eightsvx_decode_frame(AVCodecContext *avctx, void *data,
122122
/* the uncompressed starting value is contained in the first byte */
123123
dst = esc->samples;
124124
for (i = 0; i < avctx->channels; i++) {
125+
*(dst++) = buf[0];
125126
delta_decode(dst, buf + 1, buf_size / avctx->channels - 1, buf[0], esc->table);
126127
buf += buf_size / avctx->channels;
127128
dst += n / avctx->channels - 1;

tests/ref/fate/iff-fibonacci

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
e76b025238a6a27968f8644f4ccc3207
1+
96a20cd1fae705cbc11eee5d6046b8e4

0 commit comments

Comments
 (0)