From 98577e402f680cf9ee387b1397048daeed7e0360 Mon Sep 17 00:00:00 2001 From: Frank Zago Date: Wed, 4 May 2011 03:42:09 +0000 Subject: [PATCH] av_free_packet is a library call. Don't reproduce its code here. --- client/CVideoHandler.cpp | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/client/CVideoHandler.cpp b/client/CVideoHandler.cpp index 39c5a748a..480a14300 100644 --- a/client/CVideoHandler.cpp +++ b/client/CVideoHandler.cpp @@ -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