summaryrefslogtreecommitdiffstats
path: root/k9author/k9avidecode.cpp
diff options
context:
space:
mode:
authorFrancois Andriot <[email protected]>2014-10-06 13:04:57 -0500
committerTimothy Pearson <[email protected]>2014-10-06 13:04:57 -0500
commitbf5593262e9b216e95ffd922466285c6d31222c0 (patch)
tree89b0af2ff27a754bf74630d9ea4ceef66e6eef0c /k9author/k9avidecode.cpp
parent2dfe2f4e8c53bc15375270cf6615a2cc833323d6 (diff)
downloadk9copy-bf5593262e9b216e95ffd922466285c6d31222c0.tar.gz
k9copy-bf5593262e9b216e95ffd922466285c6d31222c0.zip
Fix crash when authoring DVD and selecting video file
Diffstat (limited to 'k9author/k9avidecode.cpp')
-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