avcodec/avuienc: Use ff_alloc_packet()

This should be faster in theory for AVUI, no speed difference
meassurable though

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
pull/267/head
Michael Niedermayer 10 years ago
parent 0e7bbdbeaf
commit c0db6320a6
  1. 2
      libavcodec/avuienc.c

@ -67,7 +67,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_packet2(avctx, pkt, size)) < 0)
if ((ret = ff_alloc_packet(pkt, size)) < 0)
return ret;
dst = pkt->data;
if (!interlaced) {

Loading…
Cancel
Save