1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-02-03 13:01:33 +02:00

av_free_packet is a library call. Don't reproduce its code here.

This commit is contained in:
Frank Zago 2011-05-04 03:42:09 +00:00
parent f7a4bb906c
commit 98577e402f

View File

@ -968,15 +968,4 @@ CVideoPlayer::~CVideoPlayer()
close();
}
//In old versions of libavformat this function is defined as static inline and not present in compiled library
//which results in linkage error if compiler had not inlined it for some reason
#if (LIBAVFORMAT_VERSION_MAJOR < 52) || ( LIBAVFORMAT_VERSION_MAJOR == 52 && LIBAVFORMAT_VERSION_MINOR < 32 )
void av_free_packet(AVPacket *pkt)
{
if (pkt && pkt->destruct) {
pkt->destruct(pkt);
}
}
#endif
#endif