[FFmpeg-cvslog] avcodec/hapenc: Remove use of deprecated ff_alloc_packet()
Michael Niedermayer
git at videolan.org
Wed Aug 5 15:55:55 CEST 2015
ffmpeg | branch: master | Michael Niedermayer <michael at niedermayer.cc> | Wed Aug 5 14:55:33 2015 +0200| [500bfbe27ae22f755591472cefd26a67f7fea0aa] | committer: Michael Niedermayer
avcodec/hapenc: Remove use of deprecated ff_alloc_packet()
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=500bfbe27ae22f755591472cefd26a67f7fea0aa
---
libavcodec/hapenc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavcodec/hapenc.c b/libavcodec/hapenc.c
index 39c1c5a..7daadce 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;
More information about the ffmpeg-cvslog
mailing list