aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJustin Ruggles <justin.ruggles@gmail.com>2012-01-06 18:14:24 -0500
committerJustin Ruggles <justin.ruggles@gmail.com>2012-01-07 09:44:13 -0500
commit52e9854a83a1030b3c9012aee4332fe0d71f9382 (patch)
tree434e2407747e8bf8bc2b59d723934948bedbfa5e
parent75146b8828b8393807835942091d2d4a4bf9e2b1 (diff)
downloadffmpeg-52e9854a83a1030b3c9012aee4332fe0d71f9382.tar.gz
tta: fix 24-bit decoding.
Decode to the correct output buffer.
-rw-r--r--libavcodec/tta.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/tta.c b/libavcodec/tta.c
index 7ec5435a06..bc83bfdf1d 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++) {