#include "ffmpeg_decoder.h"
#include "imagemagick_decoder.h"
#include "film.h"
-#include "external_audio_decoder.h"
+#include "sndfile_decoder.h"
#include "decoder_factory.h"
using std::string;
shared_ptr<Film> f, DecodeOptions o
)
{
+ if (f->content().empty()) {
+ return Decoders ();
+ }
+
if (boost::filesystem::is_directory (f->content_path()) || f->content_type() == STILL) {
/* A single image file, or a directory of them */
return Decoders (
shared_ptr<VideoDecoder> (new ImageMagickDecoder (f, o)),
- shared_ptr<AudioDecoder> (new ExternalAudioDecoder (f, o))
+ shared_ptr<AudioDecoder> (new SndfileDecoder (f, o))
);
}
return Decoders (fd, fd);
}
- return Decoders (fd, shared_ptr<AudioDecoder> (new ExternalAudioDecoder (f, o)));
+ return Decoders (fd, shared_ptr<AudioDecoder> (new SndfileDecoder (f, o)));
}