[FFmpeg-cvslog] avcodec/omx: fix deprecation warning for ff_alloc_packet

Aman Gupta git at videolan.org
Sat Jun 25 18:53:28 CEST 2016


ffmpeg | branch: master | Aman Gupta <aman at tmm1.net> | Thu May  5 14:54:50 2016 -0400| [ee2a8f142b518e09dbef011db2026cf8a5bb8817] | committer: Michael Niedermayer

avcodec/omx: fix deprecation warning for ff_alloc_packet

Tested-by: Jan Gerber <j at v2v.cc>
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=ee2a8f142b518e09dbef011db2026cf8a5bb8817
---

 libavcodec/omx.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/omx.c b/libavcodec/omx.c
index 674a0c3..9de9f8c 100644
--- a/libavcodec/omx.c
+++ b/libavcodec/omx.c
@@ -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;



More information about the ffmpeg-cvslog mailing list