Changeset 10538
- Timestamp:
- 08/20/09 16:59:00 (4 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
OpenSceneGraph/trunk/src/osgPlugins/ffmpeg/FFmpegImageStream.cpp
r9912 r10538 73 73 ); 74 74 75 75 76 setPixelAspectRatio(m_decoder->video_decoder().pixelAspectRatio()); 76 77 78 osg::notify(osg::NOTICE)<<"ffmpeg::open("<<filename<<") size("<<s()<<", "<<t()<<") aspect ratio "<<m_decoder->video_decoder().pixelAspectRatio()<<std::endl; 79 80 #if 1 81 // swscale is reported errors and then crashing when rescaling video of size less than 10 by 10. 82 if (s()<=10 || t()<=10) return false; 83 #endif 84 77 85 m_decoder->video_decoder().setUserData(this); 78 86 m_decoder->video_decoder().setPublishCallback(publishNewFrame); 79 87 80 88 if (m_decoder->audio_decoder().validContext()) 81 89 { 82 90 osg::notify(osg::NOTICE)<<"Attaching FFmpegAudioStream"<<std::endl; 83 91 84 92 getAudioStreams().push_back(new FFmpegAudioStream(m_decoder.get())); 85 93 }
