mirror of
https://github.com/vcmi/vcmi.git
synced 2025-01-28 03:57:02 +02:00
- compilation fix for #765
This commit is contained in:
parent
ed056cf0df
commit
75d068bc03
@ -708,7 +708,12 @@ bool CVideoPlayer::open(std::string fname, bool loop, bool useOverlay)
|
|||||||
// Find the first video stream
|
// Find the first video stream
|
||||||
stream = -1;
|
stream = -1;
|
||||||
for(unsigned int i=0; i<format->nb_streams; i++) {
|
for(unsigned int i=0; i<format->nb_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;
|
stream = i;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user