diff --git a/src/osgPlugins/ffmpeg/FFmpegImageStream.cpp b/src/osgPlugins/ffmpeg/FFmpegImageStream.cpp index f3b543cbe..de452c884 100644 --- a/src/osgPlugins/ffmpeg/FFmpegImageStream.cpp +++ b/src/osgPlugins/ffmpeg/FFmpegImageStream.cpp @@ -72,15 +72,23 @@ bool FFmpegImageStream::open(const std::string & filename) const_cast(m_decoder->video_decoder().image()), NO_DELETE ); + setPixelAspectRatio(m_decoder->video_decoder().pixelAspectRatio()); - + + osg::notify(osg::NOTICE)<<"ffmpeg::open("<video_decoder().pixelAspectRatio()<video_decoder().setUserData(this); m_decoder->video_decoder().setPublishCallback(publishNewFrame); - + if (m_decoder->audio_decoder().validContext()) { osg::notify(osg::NOTICE)<<"Attaching FFmpegAudioStream"<