Signed-off-by: James Almer <jamr...@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 --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);
 
-- 
2.29.2

_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

To unsubscribe, visit link above, or email
ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".

Reply via email to