summaryrefslogtreecommitdiffstats
path: root/k9author
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-09-06 19:33:36 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-09-06 19:33:36 +0000
commit991863ab5e86d6c05eaf0449b6623825b56ee97c (patch)
tree87ba05be2b9c56a0e326dd3fa8726030f780866a /k9author
parent32cb73195f95212a97ae0784163b0551d80b05c8 (diff)
downloadk9copy-991863ab5e86d6c05eaf0449b6623825b56ee97c.tar.gz
k9copy-991863ab5e86d6c05eaf0449b6623825b56ee97c.zip
Autodetect av_free_packet presence and compensate if not present
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/k9copy@1172237 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'k9author')
-rw-r--r--k9author/k9avidecode.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/k9author/k9avidecode.cpp b/k9author/k9avidecode.cpp
index 7e19a7f..b89acc1 100644
--- a/k9author/k9avidecode.cpp
+++ b/k9author/k9avidecode.cpp
@@ -16,6 +16,7 @@
#endif
#ifdef NEW_FFMPEG
#include <libavcodec/avcodec.h>
+#include <libavformat/avformat.h>
#endif
#include <qimage.h>
@@ -28,6 +29,8 @@ void *CodecHandle=0;
void *FormatHandle=0;
int glibref=0;
+#ifdef NEW_FFMPEG
+#ifdef NEEDS_AV_FREE_PACKET
void av_free_packet(AVPacket *pkt)
{
if (pkt) {
@@ -35,6 +38,8 @@ void av_free_packet(AVPacket *pkt)
pkt->data = NULL; pkt->size = 0;
}
}
+#endif
+#endif
k9AviDecode::k9AviDecode(QObject *parent, const char *name)
: QObject(parent, name) {