]> git.sesse.net Git - ffmpeg/commitdiff
avcodec/omx: fix deprecation warning for ff_alloc_packet
authorAman Gupta <aman@tmm1.net>
Thu, 5 May 2016 18:54:50 +0000 (14:54 -0400)
committerMichael Niedermayer <michael@niedermayer.cc>
Sat, 25 Jun 2016 16:48:59 +0000 (18:48 +0200)
Tested-by: Jan Gerber <j@v2v.cc>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/omx.c

index 674a0c3aa63cfb6403e1f9677e6f3f5d6bb2de7e..9de9f8cc5779818c58f1ffb467e9980a528b649b 100644 (file)
@@ -834,7 +834,7 @@ static int omx_encode_frame(AVCodecContext *avctx, AVPacket *pkt,
                 }
             } else {
                 // End of frame, and the caller provided a preallocated frame
-                if ((ret = ff_alloc_packet(pkt, s->output_buf_size + buffer->nFilledLen)) < 0) {
+                if ((ret = ff_alloc_packet2(avctx, pkt, s->output_buf_size + buffer->nFilledLen, 0)) < 0) {
                     av_log(avctx, AV_LOG_ERROR, "Error getting output packet of size %d.\n",
                            (int)(s->output_buf_size + buffer->nFilledLen));
                     goto end;