Commit 9d44b054 authored by Michael Niedermayer's avatar Michael Niedermayer

dnxhdenc: switch to ff_alloc_packet2()

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent ca6a3448
......@@ -910,8 +910,7 @@ static int dnxhd_encode_picture(AVCodecContext *avctx, AVPacket *pkt,
int offset, i, ret;
uint8_t *buf;
if ((ret = ff_alloc_packet(pkt, ctx->cid_table->frame_size)) < 0) {
av_log(avctx, AV_LOG_ERROR, "output buffer is too small to compress picture\n");
if ((ret = ff_alloc_packet2(avctx, pkt, ctx->cid_table->frame_size)) < 0) {
return ret;
}
buf = pkt->data;
......
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