diff mbox series

[FFmpeg-devel,17/18] avcodec/avpacket: schedule the removal of avpriv_packet_list_*

Message ID 20201118165247.4130-18-jamrial@gmail.com
State New
Headers show
Series AVPacketList public API | expand

Checks

Context Check Description
andriy/x86_make success Make finished
andriy/x86_make_fate success Make fate finished

Commit Message

James Almer Nov. 18, 2020, 4:52 p.m. UTC
Signed-off-by: James Almer <jamrial@gmail.com>
---
Maybe we can remove this right away? It's not in any release.

 libavcodec/avpacket.c        | 2 ++
 libavcodec/packet_internal.h | 2 ++
 2 files changed, 4 insertions(+)
diff mbox series

Patch

diff --git a/libavcodec/avpacket.c b/libavcodec/avpacket.c
index c79200b63b..0db47c1d62 100644
--- a/libavcodec/avpacket.c
+++ b/libavcodec/avpacket.c
@@ -726,6 +726,7 @@  FF_ENABLE_DEPRECATION_WARNINGS
 #endif
 }
 
+#if LIBAVCODEC_VERSION_MAJOR < 59
 int avpriv_packet_list_put(PacketListEntry **packet_buffer,
                            PacketListEntry **plast_pktl,
                            AVPacket      *pkt,
@@ -792,6 +793,7 @@  void avpriv_packet_list_free(PacketListEntry **pkt_buf, PacketListEntry **pkt_bu
     *pkt_buf     = NULL;
     *pkt_buf_end = NULL;
 }
+#endif
 
 AVPacketList *av_packet_list_alloc(void)
 {
diff --git a/libavcodec/packet_internal.h b/libavcodec/packet_internal.h
index 2774d75a7e..fd9637bc44 100644
--- a/libavcodec/packet_internal.h
+++ b/libavcodec/packet_internal.h
@@ -38,6 +38,7 @@  struct AVPacketList {
     PacketListEntry *tail;
 };
 
+#if LIBAVCODEC_VERSION_MAJOR < 59
 /**
  * Append an AVPacket to the list.
  *
@@ -78,6 +79,7 @@  int avpriv_packet_list_get(PacketListEntry **head, PacketListEntry **tail,
  * @param tail List tail element
  */
 void avpriv_packet_list_free(PacketListEntry **head, PacketListEntry **tail);
+#endif
 
 int ff_side_data_set_encoder_stats(AVPacket *pkt, int quality, int64_t *error, int error_count, int pict_type);