summaryrefslogtreecommitdiff
path: root/src/lib/image_content.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/image_content.cc')
-rw-r--r--src/lib/image_content.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/image_content.cc b/src/lib/image_content.cc
index a9cb148c2..f9a772e00 100644
--- a/src/lib/image_content.cc
+++ b/src/lib/image_content.cc
@@ -40,7 +40,7 @@ ImageContent::ImageContent (shared_ptr<const Film> f, boost::filesystem::path p)
, VideoContent (f)
{
bool have_j2k = false;
- if (boost::filesystem::is_regular_file (p)) {
+ if (boost::filesystem::is_regular_file (p) && valid_image_file (p)) {
_paths.push_back (p);
if (valid_j2k_file (p)) {
have_j2k = true;