diff options
| author | Carl Hetherington <cth@carlh.net> | 2012-11-14 21:58:47 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2012-11-14 21:58:47 +0000 |
| commit | 967dc3f4461d4b8caf809ebce7bdcb6e818809f0 (patch) | |
| tree | c599bad3a8a3797ccdc3d25963059a668baa6649 /src/lib/decoder_factory.cc | |
| parent | 05c37b9bb09f7bfa4c2ec8ea6b3fa4a83d0fec20 (diff) | |
Use ImageMagick for tiff decoding too.
Diffstat (limited to 'src/lib/decoder_factory.cc')
| -rw-r--r-- | src/lib/decoder_factory.cc | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/src/lib/decoder_factory.cc b/src/lib/decoder_factory.cc index d4a91d8d9..bb6eff971 100644 --- a/src/lib/decoder_factory.cc +++ b/src/lib/decoder_factory.cc @@ -23,7 +23,6 @@ #include <boost/filesystem.hpp> #include "ffmpeg_decoder.h" -#include "tiff_decoder.h" #include "imagemagick_decoder.h" #include "film.h" @@ -35,12 +34,8 @@ decoder_factory ( shared_ptr<Film> f, shared_ptr<const Options> o, Job* j ) { - if (boost::filesystem::is_directory (f->content_path ())) { - /* Assume a directory contains TIFFs */ - return shared_ptr<Decoder> (new TIFFDecoder (f, o, j)); - } - - if (f->content_type() == STILL) { + if (boost::filesystem::is_directory (f->content_path()) || f->content_type() == STILL) { + /* A single image file, or a directory of them */ return shared_ptr<Decoder> (new ImageMagickDecoder (f, o, j)); } |
