diff --git a/src/osgPlugins/quicktime/MovieData.cpp b/src/osgPlugins/quicktime/MovieData.cpp index 89fb0156b..6ca1d1a53 100644 --- a/src/osgPlugins/quicktime/MovieData.cpp +++ b/src/osgPlugins/quicktime/MovieData.cpp @@ -93,11 +93,10 @@ void MovieData::load(osg::Image* image, std::string afilename, float startTime) } - Rect bounds; + Rect bounds = (*GetMovieBoundsRgn(_movie))->rgnBBox; - GetMovieBox(_movie, &bounds); - _checkMovieError("Can't get movie box\n"); - + _checkMovieError("Can't get movie bounds\n"); + OffsetRect(&bounds, -bounds.left, -bounds.top); SetMovieBox(_movie, &bounds); _checkMovieError("Can't set movie box\n");