Commit dca0e4cd authored by Michael Niedermayer's avatar Michael Niedermayer

avcodec_encode_audio2: use ff_alloc_packet2()

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 2bd303f9
......@@ -1039,7 +1039,7 @@ int attribute_align_arg avcodec_encode_audio2(AVCodecContext *avctx,
buf_size += 2*FF_MIN_BUFFER_SIZE;
}
}
if ((ret = ff_alloc_packet(avpkt, buf_size)))
if ((ret = ff_alloc_packet2(avctx, avpkt, buf_size)))
return ret;
/* Encoders using AVCodec.encode() that support
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment