diff options
author | Michael Roitzsch <mroi@users.sourceforge.net> | 2003-08-05 15:30:04 +0000 |
---|---|---|
committer | Michael Roitzsch <mroi@users.sourceforge.net> | 2003-08-05 15:30:04 +0000 |
commit | 7908410506b44160668af338bd53ace01d0ae055 (patch) | |
tree | 03253259698a9f970532e3e63fd3759892276719 | |
parent | 9f7659bd9c5d1b03b65433ed7aed3ea7cdc16c14 (diff) | |
download | xine-lib-7908410506b44160668af338bd53ace01d0ae055.tar.gz xine-lib-7908410506b44160668af338bd53ace01d0ae055.tar.bz2 |
better do a floating point division here
CVS patchset: 5253
CVS date: 2003/08/05 15:30:04
-rw-r--r-- | src/dxr3/dxr3_decode_video.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/dxr3/dxr3_decode_video.c b/src/dxr3/dxr3_decode_video.c index 9786f087a..a4be9646a 100644 --- a/src/dxr3/dxr3_decode_video.c +++ b/src/dxr3/dxr3_decode_video.c @@ -17,7 +17,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA * - * $Id: dxr3_decode_video.c,v 1.38 2003/08/05 15:07:42 mroi Exp $ + * $Id: dxr3_decode_video.c,v 1.39 2003/08/05 15:30:04 mroi Exp $ */ /* dxr3 video decoder plugin. @@ -339,7 +339,7 @@ static void dxr3_decode_data(video_decoder_t *this_gen, buf_element_t *buf) break; default: if (this->have_header_info) - this->ratio = this->last_width / this->last_height; + this->ratio = (double)this->last_width / (double)this->last_height; } this->last_aspect_code = this->aspect_code; @@ -718,7 +718,7 @@ static void parse_mpeg_header(dxr3_decoder_t *this, uint8_t * buffer) this->ratio = 2.11; break; default: - this->ratio = this->width / this->height; + this->ratio = (double)this->width / (double)this->height; } /* update stream metadata */ |