Fixed up FFMpeg input +test

This commit is contained in:
Nicolay Korslund 2010-01-01 20:18:11 +01:00
parent fbb77478c0
commit cdca68a368
5 changed files with 72 additions and 10 deletions

View file

@ -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);