mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-25 22:42:04 +02:00
Merge pull request #5337 from IvanSavenko/ffmpeg_explicit
[1.6?] Explicit toggle for ffmpeg video player compilation
This commit is contained in:
@@ -10,7 +10,7 @@
|
||||
#include "StdInc.h"
|
||||
#include "CVideoHandler.h"
|
||||
|
||||
#ifndef DISABLE_VIDEO
|
||||
#ifdef ENABLE_VIDEO
|
||||
|
||||
#include "ISoundPlayer.h"
|
||||
|
||||
@@ -671,6 +671,8 @@ std::pair<std::unique_ptr<ui8 []>, si64> CAudioInstance::extractAudio(const Vide
|
||||
|
||||
std::unique_ptr<IVideoInstance> CVideoPlayer::open(const VideoPath & name, float scaleFactor)
|
||||
{
|
||||
logGlobal->trace("Opening video: %s", name.getOriginalName());
|
||||
|
||||
auto result = std::make_unique<CVideoInstance>();
|
||||
|
||||
if (!result->openInput(name))
|
||||
@@ -687,6 +689,8 @@ std::unique_ptr<IVideoInstance> CVideoPlayer::open(const VideoPath & name, float
|
||||
|
||||
std::pair<std::unique_ptr<ui8[]>, si64> CVideoPlayer::getAudio(const VideoPath & videoToOpen)
|
||||
{
|
||||
logGlobal->trace("Opening video: %s", videoToOpen.getOriginalName());
|
||||
|
||||
AudioPath audioPath = videoToOpen.toType<EResType::SOUND>();
|
||||
AudioPath audioPathVideoDir = audioPath.addPrefix("VIDEO/");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user