diff options
author | Aman Gupta <aman@tmm1.net> | 2016-05-05 14:54:50 -0400 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2016-06-25 18:48:59 +0200 |
commit | ee2a8f142b518e09dbef011db2026cf8a5bb8817 (patch) | |
tree | 998e94268e287449c42977f26e7243c4e8ef6ff1 /libavcodec/omx.c | |
parent | d96b8144c0058586d3c3472de2621d105f0aa620 (diff) | |
download | ffmpeg-ee2a8f142b518e09dbef011db2026cf8a5bb8817.tar.gz |
avcodec/omx: fix deprecation warning for ff_alloc_packet
Tested-by: Jan Gerber <j@v2v.cc>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavcodec/omx.c')
-rw-r--r-- | libavcodec/omx.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/omx.c b/libavcodec/omx.c index 674a0c3aa6..9de9f8cc57 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; |