CODEC_ID_SOL_DPCM: Fix used write buffer.
authorMichael Niedermayer <michaelni@gmx.at>
Fri, 16 Dec 2011 19:34:34 +0000 (20:34 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Fri, 16 Dec 2011 19:34:34 +0000 (20:34 +0100)
Bug found by: Oana Stratulat

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/dpcm.c

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