mirror of
https://github.com/xenia-project/FFmpeg.git
synced 2024-12-03 00:56:54 +00:00
dnxhdenc: switch to ff_alloc_packet2()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
ca6a3448e9
commit
9d44b0549f
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user