From Serge Lages, "Here is a fix for the Quicktime plugin, with the previous version, the size for some videos was not correct, using GetMovieBoundsRgn instead of GetMovieBox returns the real movie size.
"
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user