]> git.sesse.net Git - ffmpeg/commitdiff
avcodec/encode: Remove ff_alloc_packet
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Mon, 1 Jun 2020 09:44:00 +0000 (11:44 +0200)
committerAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Mon, 1 Jun 2020 12:52:26 +0000 (14:52 +0200)
It is no longer used anymore.

Reviewed-by: James Almer <jamrial@gmail.com>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
libavcodec/encode.c
libavcodec/internal.h

index b850f86d0c0a6742dd7c3b55f94d8655e1cd7cae..b1784ed05089093c5d921e00c8fd968ddf7441c5 100644 (file)
@@ -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.
  */
index 0e3415d69b7c8aff52f16c445a4f7bc8ad97f57a..d09c3167ed3cc5cbebeb50bef21b652751535a8b 100644 (file)
@@ -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.
  */