diff options
author | Paul B Mahol <onemda@gmail.com> | 2013-08-02 16:45:58 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2013-08-10 02:01:40 +0200 |
commit | b79f337f8a683887f8bb436812c8bee3fd67f95e (patch) | |
tree | bc4612c1e1b06325862a65159e623d82c4860b35 | |
parent | f593ac1c2183a29599fdc942027bc80ffaa9ab46 (diff) | |
download | ffmpeg-b79f337f8a683887f8bb436812c8bee3fd67f95e.tar.gz |
ttaenc: fix packet size
Signed-off-by: Paul B Mahol <onemda@gmail.com>
(cherry picked from commit bc2187cfdb5eeb82e3caf42a81a00d1ee4c16d8e)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r-- | libavcodec/ttaenc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/ttaenc.c b/libavcodec/ttaenc.c index c77e0c29b0..55599cc525 100644 --- a/libavcodec/ttaenc.c +++ b/libavcodec/ttaenc.c @@ -116,7 +116,7 @@ static int tta_encode_frame(AVCodecContext *avctx, AVPacket *avpkt, PutBitContext pb; int ret, i, out_bytes, cur_chan = 0, res = 0, samples = 0; - if ((ret = ff_alloc_packet2(avctx, avpkt, frame->nb_samples * 2 * s->bps)) < 0) + if ((ret = ff_alloc_packet2(avctx, avpkt, frame->nb_samples * 2 * avctx->channels * s->bps)) < 0) return ret; init_put_bits(&pb, avpkt->data, avpkt->size); |