]> git.pld-linux.org Git - packages/performous.git/blobdiff - performous-ffmpeg.patch
- rel 10; fix build with new ffmpeg
[packages/performous.git] / performous-ffmpeg.patch
diff --git a/performous-ffmpeg.patch b/performous-ffmpeg.patch
new file mode 100644 (file)
index 0000000..5058fca
--- /dev/null
@@ -0,0 +1,14 @@
+diff -ur Performous-0.6.1-Source.org/game/ffmpeg.cc Performous-0.6.1-Source/game/ffmpeg.cc
+--- Performous-0.6.1-Source.org/game/ffmpeg.cc 2010-10-31 17:05:43.000000000 +0100
++++ Performous-0.6.1-Source/game/ffmpeg.cc     2011-09-11 21:20:47.661140779 +0200
+@@ -60,8 +60,8 @@
+       for (unsigned int i=0; i<pFormatCtx->nb_streams; i++) {
+               AVCodecContext* cc = pFormatCtx->streams[i]->codec;
+               cc->workaround_bugs = FF_BUG_AUTODETECT;
+-              if (videoStream == -1 && cc->codec_type==CODEC_TYPE_VIDEO) videoStream = i;
+-              if (audioStream == -1 && cc->codec_type==CODEC_TYPE_AUDIO) audioStream = i;
++              if (videoStream == -1 && cc->codec_type==AVMEDIA_TYPE_VIDEO) videoStream = i;
++              if (audioStream == -1 && cc->codec_type==AVMEDIA_TYPE_AUDIO) audioStream = i;
+       }
+       if (videoStream == -1 && decodeVideo) throw std::runtime_error("No video stream found");
+       if (audioStream == -1 && decodeAudio) throw std::runtime_error("No audio stream found");
This page took 0.311372 seconds and 4 git commands to generate.