summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--k9author/k9avidecode.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/k9author/k9avidecode.cpp b/k9author/k9avidecode.cpp
index ec7b82d..731b1d3 100644
--- a/k9author/k9avidecode.cpp
+++ b/k9author/k9avidecode.cpp
@@ -119,6 +119,13 @@ k9AviDecode::k9AviDecode(TQObject *parent, const char *name)
m_opened=false;
glibref++;
+
+ m_FormatCtx = NULL;
+ m_CodecCtx = NULL;
+ m_Codec = NULL;
+ m_Frame = NULL;
+ m_FrameRGB = NULL;
+ m_buffer = NULL;
}
@@ -148,7 +155,7 @@ bool k9AviDecode::open(const TQString & _fileName) {
// Open video file
if (
# if LIBAVFORMAT_VERSION_INT >= AV_VERSION_INT(53, 2, 0)
- avformat_open_input(&m_FormatCtx, _fileName.utf8(), 0, 0)!=0
+ avformat_open_input(&m_FormatCtx, _fileName.utf8(), NULL, NULL)!=0
# else
av_open_input_file(&m_FormatCtx, _fileName.utf8(), NULL, 0, NULL)!=0
# endif