1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

avcodec/avuienc: Use ff_alloc_packet2()

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
Michael Niedermayer 2015-08-02 20:24:30 +02:00
parent a0044becca
commit 4a8ec0218e

View File

@ -62,7 +62,7 @@ static int avui_encode_frame(AVCodecContext *avctx, AVPacket *pkt,
skip = 16;
}
size = 2 * avctx->width * (avctx->height + skip) + 8 * interlaced;
if ((ret = ff_alloc_packet(pkt, size)) < 0)
if ((ret = ff_alloc_packet2(avctx, pkt, size, size)) < 0)
return ret;
dst = pkt->data;
if (!interlaced) {