[FFmpeg-cvslog] tta: let samples declaration match cast

Paul B Mahol git at videolan.org
Sun Sep 30 15:42:01 CEST 2012


ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Sun Sep 30 13:25:08 2012 +0000| [01c9ffa9134bec2a9b97c39a7b59aa0d0d5683b9] | committer: Paul B Mahol

tta: let samples declaration match cast

Signed-off-by: Paul B Mahol <onemda at gmail.com>

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

 libavcodec/tta.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/tta.c b/libavcodec/tta.c
index f035783..ce41cb3 100644
--- a/libavcodec/tta.c
+++ b/libavcodec/tta.c
@@ -427,7 +427,7 @@ static int tta_decode_frame(AVCodecContext *avctx, void *data,
         break;
         }
     case 2: {
-        uint16_t *samples = (int16_t *)s->frame.data[0];
+        int16_t *samples = (int16_t *)s->frame.data[0];
         for (p = s->decode_buffer; p < s->decode_buffer + (framelen * s->channels); p++)
             *samples++ = *p;
         break;



More information about the ffmpeg-cvslog mailing list