Skip to content

Commit

Permalink
avcodec/encode: Remove ff_alloc_packet
Browse files Browse the repository at this point in the history
It is no longer used anymore.

Reviewed-by: James Almer <[email protected]>
Signed-off-by: Andreas Rheinhardt <[email protected]>
  • Loading branch information
mkver committed Jun 1, 2020
1 parent dd76226 commit f02b1b1
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 7 deletions.
5 changes: 0 additions & 5 deletions libavcodec/encode.c
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*/
Expand Down
2 changes: 0 additions & 2 deletions libavcodec/internal.h
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*/
Expand Down

0 comments on commit f02b1b1

Please sign in to comment.