From: Christoph Feck Date: Tue, 29 May 2012 13:53:18 +0000 Subject: Two deprecated calls have been removed from ffmpeg 0.11. X-Git-Tag: v4.8.80 X-Git-Url: http://quickgit.kde.org/?p=ffmpegthumbs.git&a=commitdiff&h=4f03b20614c122e3e14473d42a000c0bffdce39c --- Two deprecated calls have been removed from ffmpeg 0.11. BUG:300732 --- --- a/ffmpegthumbnailer/moviedecoder.cpp +++ b/ffmpegthumbnailer/moviedecoder.cpp @@ -52,12 +52,11 @@ MovieDecoder::~MovieDecoder() void MovieDecoder::initialize(const QString& filename) { av_register_all(); - avcodec_init(); avcodec_register_all(); QFileInfo fileInfo(filename); - if ((!m_FormatContextWasGiven) && av_open_input_file(&m_pFormatContext, fileInfo.absoluteFilePath().toUtf8().data(), NULL, 0, NULL) != 0) { + if ((!m_FormatContextWasGiven) && avformat_open_input(&m_pFormatContext, fileInfo.absoluteFilePath().toLocal8Bit().data(), NULL, NULL) != 0) { kDebug() << "Could not open input file: " << fileInfo.absoluteFilePath(); return; }