From 52e9854a83a1030b3c9012aee4332fe0d71f9382 Mon Sep 17 00:00:00 2001 From: Justin Ruggles Date: Fri, 6 Jan 2012 18:14:24 -0500 Subject: tta: fix 24-bit decoding. Decode to the correct output buffer. --- libavcodec/tta.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libavcodec') 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++) { -- cgit v1.2.3