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:
parent
f7a4bb906c
commit
98577e402f
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user