Browse Source

libx264: switch to ff_alloc_packet2().

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n0.11
Michael Niedermayer 13 years ago
parent
commit
660e8cb9e3
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavcodec/libx264.c

+ 1
- 1
libavcodec/libx264.c View File

@@ -101,7 +101,7 @@ static int encode_nals(AVCodecContext *ctx, AVPacket *pkt,
for (i = 0; i < nnal; i++)
size += nals[i].i_payload;

if ((ret = ff_alloc_packet(pkt, size)) < 0)
if ((ret = ff_alloc_packet2(ctx, pkt, size)) < 0)
return ret;

p = pkt->data;


Loading…
Cancel
Save