aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec
diff options
context:
space:
mode:
authorLaurentiu Ion <ionlaurentiucristian@gmail.com>2012-01-08 23:05:37 +0200
committerRonald S. Bultje <rsbultje@gmail.com>2012-01-08 13:13:11 -0800
commit529a25d6e5c3ff889257a57042872d84dc2312d5 (patch)
tree62ac14d890c5f238007f7a1bff4c2687a940d876 /libavcodec
parent12e984aed76d52e959bb7cbee72c149444ff58ce (diff)
downloadffmpeg-529a25d6e5c3ff889257a57042872d84dc2312d5.tar.gz
dpcm: Fix invalid writes
Fixes bug: #152 Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/dpcm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/dpcm.c b/libavcodec/dpcm.c
index 935f67caca..1b0f6b005b 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 = s->frame.data[0];
while (buf < buf_end) {
uint8_t n = *buf++;