[FFmpeg-cvslog] dpcm: Fix invalid writes
Laurentiu Ion
git at videolan.org
Mon Jan 9 00:52:38 CET 2012
ffmpeg | branch: master | Laurentiu Ion <ionlaurentiucristian at gmail.com> | Sun Jan 8 23:05:37 2012 +0200| [529a25d6e5c3ff889257a57042872d84dc2312d5] | committer: Ronald S. Bultje
dpcm: Fix invalid writes
Fixes bug: #152
Signed-off-by: Ronald S. Bultje <rsbultje at gmail.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=529a25d6e5c3ff889257a57042872d84dc2312d5
---
libavcodec/dpcm.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/libavcodec/dpcm.c b/libavcodec/dpcm.c
index 935f67c..1b0f6b0 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++;
More information about the ffmpeg-cvslog
mailing list