2
Index: performous-0.6.1/game/ffmpeg.cc
3
===================================================================
4
--- performous-0.6.1.orig/game/ffmpeg.cc 2011-08-08 09:36:02.596685105 -0400
5
+++ performous-0.6.1/game/ffmpeg.cc 2011-08-08 09:37:24.380685064 -0400
7
for (unsigned int i=0; i<pFormatCtx->nb_streams; i++) {
8
AVCodecContext* cc = pFormatCtx->streams[i]->codec;
9
cc->workaround_bugs = FF_BUG_AUTODETECT;
10
- if (videoStream == -1 && cc->codec_type==CODEC_TYPE_VIDEO) videoStream = i;
11
- if (audioStream == -1 && cc->codec_type==CODEC_TYPE_AUDIO) audioStream = i;
12
+ if (videoStream == -1 && cc->codec_type==AVMEDIA_TYPE_VIDEO) videoStream = i;
13
+ if (audioStream == -1 && cc->codec_type==AVMEDIA_TYPE_AUDIO) audioStream = i;
15
if (videoStream == -1 && decodeVideo) throw std::runtime_error("No video stream found");
16
if (audioStream == -1 && decodeAudio) throw std::runtime_error("No audio stream found");