From 75d068bc03cc5877abdfaf366860afba198cd09c Mon Sep 17 00:00:00 2001 From: Ivan Savenko Date: Tue, 5 Jul 2011 19:06:47 +0000 Subject: [PATCH] - compilation fix for #765 --- client/CVideoHandler.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/client/CVideoHandler.cpp b/client/CVideoHandler.cpp index 314aa3f5b..865d4da60 100644 --- a/client/CVideoHandler.cpp +++ b/client/CVideoHandler.cpp @@ -708,7 +708,12 @@ bool CVideoPlayer::open(std::string fname, bool loop, bool useOverlay) // Find the first video stream stream = -1; for(unsigned int i=0; inb_streams; i++) { - if (format->streams[i]->codec->codec_type==AVMEDIA_TYPE_VIDEO) { +#if LIBAVCODEC_VERSION_MAJOR < 53 + if (format->streams[i]->codec->codec_type==CODEC_TYPE_VIDEO) +#else + if (format->streams[i]->codec->codec_type==AVMEDIA_TYPE_VIDEO) +#endif + { stream = i; break; }