summaryrefslogtreecommitdiffstats
path: root/k9author/k9avidecode.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'k9author/k9avidecode.cpp')
-rw-r--r--k9author/k9avidecode.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/k9author/k9avidecode.cpp b/k9author/k9avidecode.cpp
index 1ef120d..7e19a7f 100644
--- a/k9author/k9avidecode.cpp
+++ b/k9author/k9avidecode.cpp
@@ -28,6 +28,14 @@ void *CodecHandle=0;
void *FormatHandle=0;
int glibref=0;
+void av_free_packet(AVPacket *pkt)
+{
+ if (pkt) {
+ if (pkt->destruct) pkt->destruct(pkt);
+ pkt->data = NULL; pkt->size = 0;
+ }
+}
+
k9AviDecode::k9AviDecode(QObject *parent, const char *name)
: QObject(parent, name) {
if (glibref==0) {