avcodec/encode: Remove ff_alloc_packet

It is no longer used anymore.

Reviewed-by: James Almer <jamrial@gmail.com>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
pull/339/head
Andreas Rheinhardt 5 years ago
parent dd76226842
commit f02b1b1222
  1. 5
      libavcodec/encode.c
  2. 2
      libavcodec/internal.h

@ -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.
*/

@ -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.
*/

Loading…
Cancel
Save