From: Andreas Rheinhardt Date: Mon, 1 Jun 2020 09:44:00 +0000 (+0200) Subject: avcodec/encode: Remove ff_alloc_packet X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=f02b1b12221843e4817e16f4fa210790a8c26184;p=ffmpeg avcodec/encode: Remove ff_alloc_packet It is no longer used anymore. Reviewed-by: James Almer Signed-off-by: Andreas Rheinhardt --- diff --git a/libavcodec/encode.c b/libavcodec/encode.c index b850f86d0c0..b1784ed0508 100644 --- a/libavcodec/encode.c +++ b/libavcodec/encode.c @@ -70,11 +70,6 @@ int ff_alloc_packet2(AVCodecContext *avctx, AVPacket *avpkt, int64_t size, int64 } } -int ff_alloc_packet(AVPacket *avpkt, int size) -{ - return ff_alloc_packet2(NULL, avpkt, size, 0); -} - /** * Pad last frame with silence. */ diff --git a/libavcodec/internal.h b/libavcodec/internal.h index 0e3415d69b7..d09c3167ed3 100644 --- a/libavcodec/internal.h +++ b/libavcodec/internal.h @@ -250,8 +250,6 @@ void ff_color_frame(AVFrame *frame, const int color[4]); */ int ff_alloc_packet2(AVCodecContext *avctx, AVPacket *avpkt, int64_t size, int64_t min_size); -attribute_deprecated int ff_alloc_packet(AVPacket *avpkt, int size); - /** * Rescale from sample rate to AVCodecContext.time_base. */