You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-10 06:10:52 +02:00
avcodec/omx: fix deprecation warning for ff_alloc_packet
Tested-by: Jan Gerber <j@v2v.cc> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
committed by
Michael Niedermayer
parent
d96b8144c0
commit
ee2a8f142b
@@ -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;
|
||||
|
Reference in New Issue
Block a user