blob: 527ac3992c699bc6d9fe8073efe2436e174b12cc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
From: Christoph Feck <christoph@maxiom.de>
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;
}
|