CODEC_ID_SOL_DPCM: Fix used write buffer.

Bug found by: Oana Stratulat

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Michael Niedermayer 2011-12-16 20:34:34 +01:00
parent 4af0262f7d
commit 6d8e6fe9db

View File

@ -288,7 +288,7 @@ static int dpcm_decode_frame(AVCodecContext *avctx, void *data,
} }
case CODEC_ID_SOL_DPCM: case CODEC_ID_SOL_DPCM:
if (avctx->codec_tag != 3) { if (avctx->codec_tag != 3) {
uint8_t *output_samples_u8 = data; uint8_t *output_samples_u8 = output_samples;
while (buf < buf_end) { while (buf < buf_end) {
uint8_t n = *buf++; uint8_t n = *buf++;