Index: OpenSceneGraph/trunk/src/osgPlugins/ffmpeg/FFmpegDecoderVideo.cpp
===================================================================
--- OpenSceneGraph/trunk/src/osgPlugins/ffmpeg/FFmpegDecoderVideo.cpp (revision 9856)
+++ OpenSceneGraph/trunk/src/osgPlugins/ffmpeg/FFmpegDecoderVideo.cpp (revision 9857)
@@ -19,6 +19,8 @@
     m_user_data(0),
     m_publish_func(0),
-    m_exit(false),
-    m_swscale_ctx(0)
+    m_exit(false)
+#ifdef USE_SWSCALE
+    ,m_swscale_ctx(0)
+#endif
 {
 
@@ -35,4 +37,5 @@
     }
     
+#ifdef USE_SWSCALE
     if (m_swscale_ctx)
     {
@@ -40,4 +43,5 @@
         m_swscale_ctx = 0;
     }
+#endif
 }
 
@@ -220,10 +224,14 @@
     }
     
+    osg::notify(osg::NOTICE)<<"Using sws_scale"<<std::endl;
+
     return sws_scale(m_swscale_ctx,
            src->data, src->linesize, 0, src_height,
            dst->data, dst->linesize);
 #else
-    return im_convert(dst, dst_pix_fmt, src,
-                      src_pix_fmt, src_width, src_height)
+    osg::notify(osg::NOTICE)<<"Using img_convert"<<std::endl;
+
+    return img_convert(dst, dst_pix_fmt, src,
+                      src_pix_fmt, src_width, src_height);
 #endif
 }
