diff --git a/trunk/research/players/srs_player/release/srs_player.swf b/trunk/research/players/srs_player/release/srs_player.swf index c3de2e90e..69e20cfb1 100755 Binary files a/trunk/research/players/srs_player/release/srs_player.swf and b/trunk/research/players/srs_player/release/srs_player.swf differ diff --git a/trunk/research/players/srs_player/src/srs_player.as b/trunk/research/players/srs_player/src/srs_player.as index 446be1987..54ddcd651 100755 --- a/trunk/research/players/srs_player/src/srs_player.as +++ b/trunk/research/players/srs_player/src/srs_player.as @@ -106,20 +106,17 @@ package public function js_call_dar(num:int, den:int):int { if (this.video && num > 0 && den > 0 && this.video.width > 0) { // set DAR. - if (num < den) { - // calc the height by DAR - var _height:int = this.video.width * num / den; - + // calc the height by DAR + var _height:int = this.w * num / den; + if (_height <= this.h) { + this.video.width = this.w; + this.video.height = _height; + } else { // height overflow, calc the width by DAR - if (_height > this.h) { - var _width:int = this.video.height * den / num; - - this.video.width = _width; - this.video.height = this.h; - } else { - this.video.width = this.w; - this.video.height = _height; - } + var _width:int = this.h * den / num; + + this.video.width = _width; + this.video.height = this.h; } // align center.