Browse Source

avcodec/hapenc: Remove use of deprecated ff_alloc_packet()

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
tags/n2.8
Michael Niedermayer 10 years ago
parent
commit
500bfbe27a
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavcodec/hapenc.c

+ 1
- 1
libavcodec/hapenc.c View File

@@ -196,7 +196,7 @@ static int hap_encode(AVCodecContext *avctx, AVPacket *pkt,
int pktsize = FFMAX(ctx->tex_size, ctx->max_snappy * ctx->chunk_count) + header_length;

/* Allocate maximum size packet, shrink later. */
ret = ff_alloc_packet(pkt, pktsize);
ret = ff_alloc_packet2(avctx, pkt, pktsize, header_length);
if (ret < 0)
return ret;



Loading…
Cancel
Save