mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-05-01 14:27:59 +03:00
Fixed up FFMpeg input +test
This commit is contained in:
parent
fbb77478c0
commit
cdca68a368
5 changed files with 72 additions and 10 deletions
|
@ -1,4 +1,5 @@
|
|||
#include "input_ffmpeg.h"
|
||||
#include "ffmpeg_source.h"
|
||||
#include <exception>
|
||||
|
||||
using namespace Mangle::Sound;
|
||||
|
||||
|
@ -52,8 +53,6 @@ FFMpegSource::FFMpegSource(const std::string &file)
|
|||
std::string msg;
|
||||
AVCodec *codec;
|
||||
|
||||
empty = false;
|
||||
|
||||
if(av_open_input_file(&FmtCtx, file.c_str(), NULL, 0, NULL) != 0)
|
||||
fail("Error loading audio file " + file);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue