|
|
@ -119,6 +119,13 @@ k9AviDecode::k9AviDecode(TQObject *parent, const char *name)
|
|
|
|
m_opened=false;
|
|
|
|
m_opened=false;
|
|
|
|
|
|
|
|
|
|
|
|
glibref++;
|
|
|
|
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
|
|
|
|
// Open video file
|
|
|
|
if (
|
|
|
|
if (
|
|
|
|
# if LIBAVFORMAT_VERSION_INT >= AV_VERSION_INT(53, 2, 0)
|
|
|
|
# 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
|
|
|
|
# else
|
|
|
|
av_open_input_file(&m_FormatCtx, _fileName.utf8(), NULL, 0, NULL)!=0
|
|
|
|
av_open_input_file(&m_FormatCtx, _fileName.utf8(), NULL, 0, NULL)!=0
|
|
|
|
# endif
|
|
|
|
# endif
|
|
|
|