"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/AV/Output/Muxer.cpp" between
ssr-0.4.0.tar.gz and ssr-0.4.1.tar.gz

About: SimpleScreenRecorder is a screen (video-audio) recorder for Linux.

Muxer.cpp  (ssr-0.4.0):Muxer.cpp  (ssr-0.4.1)
skipping to change at line 215 skipping to change at line 215
// allocate format context // allocate format context
// ffmpeg probably wants us to use avformat_alloc_output_context2 instead , but libav doesn't have it and I can't figure out why it's needed anyway // ffmpeg probably wants us to use avformat_alloc_output_context2 instead , but libav doesn't have it and I can't figure out why it's needed anyway
m_format_context = avformat_alloc_context(); m_format_context = avformat_alloc_context();
if(m_format_context == NULL) { if(m_format_context == NULL) {
Logger::LogError("[Muxer::Init] " + Logger::tr("Error: Can't allo cate format context!")); Logger::LogError("[Muxer::Init] " + Logger::tr("Error: Can't allo cate format context!"));
throw LibavException(); throw LibavException();
} }
m_format_context->oformat = format; m_format_context->oformat = format;
// open file // open file
if(avio_open(&m_format_context->pb, m_output_file.toLocal8Bit().constData (), AVIO_FLAG_WRITE) < 0) { if(avio_open(&m_format_context->pb, QFile::encodeName(m_output_file).cons tData(), AVIO_FLAG_WRITE) < 0) {
Logger::LogError("[Muxer::Init] " + Logger::tr("Error: Can't open output file!")); Logger::LogError("[Muxer::Init] " + Logger::tr("Error: Can't open output file!"));
throw LibavException(); throw LibavException();
} }
} }
void Muxer::Free() { void Muxer::Free() {
if(m_format_context != NULL) { if(m_format_context != NULL) {
// write trailer (needed to free private muxer data) // write trailer (needed to free private muxer data)
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)