1 |
aballier 11/12/03 16:06:23 |
2 |
|
3 |
Added: qx11grab-0.2.2-ffmpeg.patch |
4 |
Log: |
5 |
fix build with ffmpeg 0.8, bug #378001 |
6 |
|
7 |
(Portage version: 2.2.0_alpha79/cvs/Linux x86_64) |
8 |
|
9 |
Revision Changes Path |
10 |
1.1 media-video/qx11grab/files/qx11grab-0.2.2-ffmpeg.patch |
11 |
|
12 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-video/qx11grab/files/qx11grab-0.2.2-ffmpeg.patch?rev=1.1&view=markup |
13 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-video/qx11grab/files/qx11grab-0.2.2-ffmpeg.patch?rev=1.1&content-type=text/plain |
14 |
|
15 |
Index: qx11grab-0.2.2-ffmpeg.patch |
16 |
=================================================================== |
17 |
Index: qx11grab-0.2.2/src/tableeditor/tableeditor.cpp |
18 |
=================================================================== |
19 |
--- qx11grab-0.2.2.orig/src/tableeditor/tableeditor.cpp |
20 |
+++ qx11grab-0.2.2/src/tableeditor/tableeditor.cpp |
21 |
@@ -67,7 +67,7 @@ void TableEditor::findVideoCodecs() |
22 |
AVCodec *codec; |
23 |
for ( codec = av_codec_next ( 0 ); codec != NULL; codec = av_codec_next ( codec ) ) |
24 |
{ |
25 |
- if ( ( codec->type == CODEC_TYPE_VIDEO ) && ( codec->encode ) ) |
26 |
+ if ( ( codec->type == AVMEDIA_TYPE_VIDEO ) && ( codec->encode ) ) |
27 |
{ |
28 |
QString itemName = QString ( "%1 (%2)" ).arg ( codec->long_name, codec->name ); |
29 |
codecSelection->addItem ( itemName, QVariant ( codec->name ) ); |
30 |
@@ -86,7 +86,7 @@ void TableEditor::findAudioCodecs() |
31 |
AVCodec *codec; |
32 |
for ( codec = av_codec_next ( 0 ); codec != NULL; codec = av_codec_next ( codec ) ) |
33 |
{ |
34 |
- if ( ( codec->type == CODEC_TYPE_AUDIO ) && ( codec->encode ) ) |
35 |
+ if ( ( codec->type == AVMEDIA_TYPE_AUDIO ) && ( codec->encode ) ) |
36 |
{ |
37 |
QString itemName = QString ( "%1 (%2)" ).arg ( codec->long_name, codec->name ); |
38 |
codecSelection->addItem ( itemName, QVariant ( codec->name ) ); |