]> git.pld-linux.org Git - packages/performous.git/blame - performous-ffmpeg.patch
- rel 10; fix build with new ffmpeg
[packages/performous.git] / performous-ffmpeg.patch
CommitLineData
cb114292
AM
1diff -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.038818 seconds and 4 git commands to generate.