freebsd-ports/multimedia/k9copy/files/patch-k9author-k9avidecode.cpp
Martin Wilke e86e534b30 - Update to 1.2.4
PR:		167573
Submitted by:	Muhammad Moinur Rahman <5u623l20@gmail.com>
Approved by:	maintainer
2012-05-25 15:29:52 +00:00

14 lines
362 B
C++

--- k9author/k9avidecode.cpp.orig 2012-05-04 03:23:44.723888015 +0600
+++ k9author/k9avidecode.cpp 2012-05-04 03:24:56.101895834 +0600
@@ -263,3 +263,11 @@
QString k9AviDecode::getError() const {
return m_error;
}
+
+
+void av_free_packet(AVPacket *pkt) {
+ if (pkt) {
+ if (pkt->destruct) pkt->destruct(pkt);
+ pkt->data = NULL; pkt->size = 0;
+ }
+}