aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2011-12-16 20:34:34 +0100
committerMichael Niedermayer <michaelni@gmx.at>2012-01-03 19:03:39 +0100
commit4f23f24e3053394407521714e40d0b8398efd40b (patch)
tree68da46f06e64b87a681195c12a4279b93b6fde62
parent34cee5bd373ec6cc297753957b73e47f31566a1d (diff)
downloadffmpeg-4f23f24e3053394407521714e40d0b8398efd40b.tar.gz
CODEC_ID_SOL_DPCM: Fix used write buffer.
Bug found by: Oana Stratulat Signed-off-by: Michael Niedermayer <michaelni@gmx.at> (cherry picked from commit 6d8e6fe9dbc365f50521cf0c4a5ffee97c970cb5) Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--libavcodec/dpcm.c2
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++;