You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
@@ -116,7 +116,7 @@ static int tta_encode_frame(AVCodecContext *avctx, AVPacket *avpkt,
|
|||||||
PutBitContext pb;
|
PutBitContext pb;
|
||||||
int ret, i, out_bytes, cur_chan = 0, res = 0, samples = 0;
|
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;
|
return ret;
|
||||||
init_put_bits(&pb, avpkt->data, avpkt->size);
|
init_put_bits(&pb, avpkt->data, avpkt->size);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user