diff options
author | James Almer <jamrial@gmail.com> | 2021-03-16 12:01:32 -0300 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2021-03-17 14:12:18 -0300 |
commit | 039ea9ec7b33bf9ae20efe36747be4712c6833f2 (patch) | |
tree | baa7f2d749c5d2071147009b88346f2add2444ea | |
parent | 1f32e91df62209d5fdaeb6f0f087a7d9ba857358 (diff) | |
download | ffmpeg-039ea9ec7b33bf9ae20efe36747be4712c6833f2.tar.gz |
avcodec/encode: silence a deprecation warning about av_init_packet()
No need to adapt this code as it will be removed long before av_init_packet()
Signed-off-by: James Almer <jamrial@gmail.com>
-rw-r--r-- | libavcodec/encode.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/encode.c b/libavcodec/encode.c index 63453b7688..a93bb3ccf7 100644 --- a/libavcodec/encode.c +++ b/libavcodec/encode.c @@ -462,7 +462,9 @@ static int compat_encode(AVCodecContext *avctx, AVPacket *avpkt, av_buffer_unref(&avpkt->buf); avpkt->buf = user_pkt.buf; avpkt->data = user_pkt.data; +FF_DISABLE_DEPRECATION_WARNINGS av_init_packet(&user_pkt); +FF_ENABLE_DEPRECATION_WARNINGS } else { av_log(avctx, AV_LOG_ERROR, "Provided packet is too small, needs to be %d\n", avpkt->size); av_packet_unref(avpkt); |