[FFmpeg-cvslog] CODEC_ID_SOL_DPCM: Fix used write buffer.

Michael Niedermayer git at videolan.org
Fri Dec 16 21:00:14 CET 2011


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Fri Dec 16 20:34:34 2011 +0100| [6d8e6fe9dbc365f50521cf0c4a5ffee97c970cb5] | committer: Michael Niedermayer

CODEC_ID_SOL_DPCM: Fix used write buffer.
Bug found by: Oana Stratulat

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=6d8e6fe9dbc365f50521cf0c4a5ffee97c970cb5
---

 libavcodec/dpcm.c |    2 +-
 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++;
 



More information about the ffmpeg-cvslog mailing list