File kdemultimedia4-4.8.3-ffmpeg_011.patch of Package kdemultimedia4
Index: ffmpegthumbs/ffmpegthumbnailer/moviedecoder.cpp
===================================================================
--- ffmpegthumbs/ffmpegthumbnailer/moviedecoder.cpp.orig
+++ ffmpegthumbs/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().toUtf8().data(), NULL, NULL) != 0) {
kDebug() << "Could not open input file: " << fileInfo.absoluteFilePath();
return;
}