From bf5593262e9b216e95ffd922466285c6d31222c0 Mon Sep 17 00:00:00 2001 From: Francois Andriot Date: Mon, 6 Oct 2014 13:04:57 -0500 Subject: Fix crash when authoring DVD and selecting video file --- k9author/k9avidecode.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'k9author/k9avidecode.cpp') 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 -- cgit v1.2.1