diff --git a/src/osgPlugins/ffmpeg/ReaderWriterFFmpeg.cpp b/src/osgPlugins/ffmpeg/ReaderWriterFFmpeg.cpp index 068771a70..f468ee81f 100644 --- a/src/osgPlugins/ffmpeg/ReaderWriterFFmpeg.cpp +++ b/src/osgPlugins/ffmpeg/ReaderWriterFFmpeg.cpp @@ -140,6 +140,9 @@ public: virtual ReadResult readImage(const std::string & filename, const osgDB::ReaderWriter::Options* options) const { const std::string ext = osgDB::getLowerCaseFileExtension(filename); + const std::string pro = osgDB::getServerProtocol(filename); + if (!acceptsExtension(ext) && !acceptsProtocol(pro)) return ReadResult::FILE_NOT_HANDLED; + if (ext=="ffmpeg") return readImage(osgDB::getNameLessExtension(filename),options); osg::ref_ptr parameters(new osgFFmpeg::FFmpegParameters);