aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2015-08-05 14:55:33 +0200
committerMichael Niedermayer <michael@niedermayer.cc>2015-08-05 15:45:50 +0200
commit500bfbe27ae22f755591472cefd26a67f7fea0aa (patch)
tree6477a6ca9d7746937c30613310ee554fff6523f0
parent22b30f925d0db181dc63cb3e684d40377c7d0b38 (diff)
downloadffmpeg-500bfbe27ae22f755591472cefd26a67f7fea0aa.tar.gz
avcodec/hapenc: Remove use of deprecated ff_alloc_packet()
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
-rw-r--r--libavcodec/hapenc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/hapenc.c b/libavcodec/hapenc.c
index 39c1c5afac..7daadce254 100644
--- a/libavcodec/hapenc.c
+++ b/libavcodec/hapenc.c
@@ -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;