[FFmpeg-cvslog] tta: cast output data pointer to the correct type

Justin Ruggles git at videolan.org
Wed Jan 18 02:36:58 CET 2012


ffmpeg | branch: master | Justin Ruggles <justin.ruggles at gmail.com> | Sat Jan  7 10:25:32 2012 -0500| [01ed1c390d8376ba5fac278ceee044bb03a58804] | committer: Justin Ruggles

tta: cast output data pointer to the correct type

fixes "warning: assignment from incompatible pointer type"

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

 libavcodec/tta.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/libavcodec/tta.c b/libavcodec/tta.c
index bc83bfd..4656ce1 100644
--- a/libavcodec/tta.c
+++ b/libavcodec/tta.c
@@ -314,7 +314,7 @@ static int tta_decode_frame(AVCodecContext *avctx, void *data,
 
     // decode directly to output buffer for 24-bit sample format
     if (s->bps == 3)
-        s->decode_buffer = s->frame.data[0];
+        s->decode_buffer = (int32_t *)s->frame.data[0];
 
     // init per channel states
     for (i = 0; i < s->channels; i++) {



More information about the ffmpeg-cvslog mailing list