diff --git a/src/osgPlugins/ffmpeg/ReaderWriterFFmpeg.cpp b/src/osgPlugins/ffmpeg/ReaderWriterFFmpeg.cpp index 8cd369a6d..f468ee81f 100644 --- a/src/osgPlugins/ffmpeg/ReaderWriterFFmpeg.cpp +++ b/src/osgPlugins/ffmpeg/ReaderWriterFFmpeg.cpp @@ -142,7 +142,7 @@ public: 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);