@@ -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)
{
@@ -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);
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(+)