You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
dnxhdenc: switch to ff_alloc_packet2()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
@@ -910,8 +910,7 @@ static int dnxhd_encode_picture(AVCodecContext *avctx, AVPacket *pkt,
|
|||||||
int offset, i, ret;
|
int offset, i, ret;
|
||||||
uint8_t *buf;
|
uint8_t *buf;
|
||||||
|
|
||||||
if ((ret = ff_alloc_packet(pkt, ctx->cid_table->frame_size)) < 0) {
|
if ((ret = ff_alloc_packet2(avctx, pkt, ctx->cid_table->frame_size)) < 0) {
|
||||||
av_log(avctx, AV_LOG_ERROR, "output buffer is too small to compress picture\n");
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
buf = pkt->data;
|
buf = pkt->data;
|
||||||
|
Reference in New Issue
Block a user