diff options
author | Paul B Mahol <onemda@gmail.com> | 2013-08-02 16:45:58 +0000 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2013-08-02 16:45:58 +0000 |
commit | bc2187cfdb5eeb82e3caf42a81a00d1ee4c16d8e (patch) | |
tree | a9651552869dca6e71983317b06ec7e31723dd7c | |
parent | 2b9590ebab8baef557d5d0f5daeedd386983bbc0 (diff) | |
download | ffmpeg-bc2187cfdb5eeb82e3caf42a81a00d1ee4c16d8e.tar.gz |
ttaenc: fix packet size
Signed-off-by: Paul B Mahol <onemda@gmail.com>
-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); |