diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2011-12-16 20:34:34 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2011-12-16 20:34:34 +0100 |
commit | 6d8e6fe9dbc365f50521cf0c4a5ffee97c970cb5 (patch) | |
tree | 33b76f34ae54ee1e3123204bcdfd711a8c10317b | |
parent | 4af0262f7d531c33b00d7f9dbca808d9c62d6a84 (diff) | |
download | ffmpeg-6d8e6fe9dbc365f50521cf0c4a5ffee97c970cb5.tar.gz |
CODEC_ID_SOL_DPCM: Fix used write buffer.
Bug found by: Oana Stratulat
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r-- | libavcodec/dpcm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/dpcm.c b/libavcodec/dpcm.c index b96461984b..5f186ebd0d 100644 --- a/libavcodec/dpcm.c +++ b/libavcodec/dpcm.c @@ -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++; |