summaryrefslogtreecommitdiffstats
path: root/libavcodec/dpcm.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2011-12-16 20:34:34 +0100
committerMichael Niedermayer <michaelni@gmx.at>2011-12-16 20:34:34 +0100
commit6d8e6fe9dbc365f50521cf0c4a5ffee97c970cb5 (patch)
tree33b76f34ae54ee1e3123204bcdfd711a8c10317b /libavcodec/dpcm.c
parent4af0262f7d531c33b00d7f9dbca808d9c62d6a84 (diff)
downloadffmpeg-streaming-6d8e6fe9dbc365f50521cf0c4a5ffee97c970cb5.zip
ffmpeg-streaming-6d8e6fe9dbc365f50521cf0c4a5ffee97c970cb5.tar.gz
CODEC_ID_SOL_DPCM: Fix used write buffer.
Bug found by: Oana Stratulat Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/dpcm.c')
-rw-r--r--libavcodec/dpcm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/dpcm.c b/libavcodec/dpcm.c
index b964619..5f186eb 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++;
OpenPOWER on IntegriCloud