]> git.pld-linux.org Git - packages/performous.git/blob - performous-ffmpeg.patch
5058fcad566c611185f4c0a5d7309f10e63361f2
[packages/performous.git] / performous-ffmpeg.patch
1 diff -ur Performous-0.6.1-Source.org/game/ffmpeg.cc Performous-0.6.1-Source/game/ffmpeg.cc
2 --- Performous-0.6.1-Source.org/game/ffmpeg.cc  2010-10-31 17:05:43.000000000 +0100
3 +++ Performous-0.6.1-Source/game/ffmpeg.cc      2011-09-11 21:20:47.661140779 +0200
4 @@ -60,8 +60,8 @@
5         for (unsigned int i=0; i<pFormatCtx->nb_streams; i++) {
6                 AVCodecContext* cc = pFormatCtx->streams[i]->codec;
7                 cc->workaround_bugs = FF_BUG_AUTODETECT;
8 -               if (videoStream == -1 && cc->codec_type==CODEC_TYPE_VIDEO) videoStream = i;
9 -               if (audioStream == -1 && cc->codec_type==CODEC_TYPE_AUDIO) audioStream = i;
10 +               if (videoStream == -1 && cc->codec_type==AVMEDIA_TYPE_VIDEO) videoStream = i;
11 +               if (audioStream == -1 && cc->codec_type==AVMEDIA_TYPE_AUDIO) audioStream = i;
12         }
13         if (videoStream == -1 && decodeVideo) throw std::runtime_error("No video stream found");
14         if (audioStream == -1 && decodeAudio) throw std::runtime_error("No audio stream found");
This page took 0.120895 seconds and 2 git commands to generate.