[FFmpeg-cvslog] tta: fix 24-bit decoding.

Justin Ruggles git at videolan.org
Sun Jan 8 04:21:41 CET 2012


ffmpeg | branch: master | Justin Ruggles <justin.ruggles at gmail.com> | Fri Jan  6 18:14:24 2012 -0500| [52e9854a83a1030b3c9012aee4332fe0d71f9382] | committer: Justin Ruggles

tta: fix 24-bit decoding.

Decode to the correct output buffer.

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

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

diff --git a/libavcodec/tta.c b/libavcodec/tta.c
index 7ec5435..bc83bfd 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 = data;
+        s->decode_buffer = s->frame.data[0];
 
     // init per channel states
     for (i = 0; i < s->channels; i++) {



More information about the ffmpeg-cvslog mailing list