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) {