1 |
pesa 13/08/31 08:27:17 |
2 |
|
3 |
Added: 2mandvd-1.8.5-libavformat54.patch |
4 |
Removed: 2mandvd-fix-const-char-concatenation.patch |
5 |
Log: |
6 |
Version bump. |
7 |
|
8 |
(Portage version: 2.2.1/cvs/Linux x86_64, signed Manifest commit with key 17A85C72) |
9 |
|
10 |
Revision Changes Path |
11 |
1.1 media-video/2mandvd/files/2mandvd-1.8.5-libavformat54.patch |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-video/2mandvd/files/2mandvd-1.8.5-libavformat54.patch?rev=1.1&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-video/2mandvd/files/2mandvd-1.8.5-libavformat54.patch?rev=1.1&content-type=text/plain |
15 |
|
16 |
Index: 2mandvd-1.8.5-libavformat54.patch |
17 |
=================================================================== |
18 |
diff --git a/videowrapper.cpp b/videowrapper.cpp |
19 |
index 7ae4ad3..d50599b 100644 |
20 |
--- a/videowrapper.cpp |
21 |
+++ b/videowrapper.cpp |
22 |
@@ -38,7 +38,7 @@ void videowrapper::delete_videowrapper() |
23 |
int videowrapper::load_video(QString filename) |
24 |
{ |
25 |
// *** OUVERTURE DU FICHIER VIDEO *** |
26 |
- #ifdef avformat_open_input |
27 |
+ #if LIBAVFORMAT_VERSION_INT > AV_VERSION_INT(53,5,0) |
28 |
if (avformat_open_input(&pFormatCtx,filename.toAscii().data(),NULL,NULL)!=0) |
29 |
{ |
30 |
#else |
31 |
@@ -91,13 +91,8 @@ int videowrapper::load_video(QString filename) |
32 |
|
33 |
// *** OUVERTURE DU CODEC *** |
34 |
|
35 |
- #ifdef av_find_stream_info |
36 |
- if(avcodec_open(pCodecCtx, pCodec)<0) |
37 |
- { |
38 |
- #else |
39 |
if (avcodec_open2(pCodecCtx, pCodec, NULL) < 0) |
40 |
{ |
41 |
- #endif |
42 |
qDebug() << "CAN'T FIND VIDEO CODEC"; |
43 |
return 1; |
44 |
} |