diff options
author | Guenter Bartsch <guenter@users.sourceforge.net> | 2003-02-22 17:32:31 +0000 |
---|---|---|
committer | Guenter Bartsch <guenter@users.sourceforge.net> | 2003-02-22 17:32:31 +0000 |
commit | 28e013cd13d35ba35b2d0e7621e61e8c074d7f0b (patch) | |
tree | f9b32b300f735c6af808c8206c2077bf089d34f9 /src | |
parent | 5bd2236543a673843eecf47c5bbd1b6b69cbb6df (diff) | |
download | xine-lib-28e013cd13d35ba35b2d0e7621e61e8c074d7f0b.tar.gz xine-lib-28e013cd13d35ba35b2d0e7621e61e8c074d7f0b.tar.bz2 |
fix aspect ratio detection code
CVS patchset: 4256
CVS date: 2003/02/22 17:32:31
Diffstat (limited to 'src')
-rw-r--r-- | src/libffmpeg/xine_decoder.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/libffmpeg/xine_decoder.c b/src/libffmpeg/xine_decoder.c index 3e43f3452..2a89567be 100644 --- a/src/libffmpeg/xine_decoder.c +++ b/src/libffmpeg/xine_decoder.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: xine_decoder.c,v 1.95 2003/02/20 02:13:19 jstembridge Exp $ + * $Id: xine_decoder.c,v 1.96 2003/02/22 17:32:31 guenter Exp $ * * xine decoder plugin using ffmpeg * @@ -503,7 +503,8 @@ static void ff_decode_data (video_decoder_t *this_gen, buf_element_t *buf) { float diff; this->xine_aspect_ratio = XINE_VO_ASPECT_DONT_TOUCH; - diff = abs_float( this->context->aspect_ratio - 0.0 ); + diff = abs_float( this->context->aspect_ratio - + (float)this->bih.biWidth/(float)this->bih.biHeight); if( diff > abs_float( this->context->aspect_ratio - 1.0 ) ) { this->xine_aspect_ratio = XINE_VO_ASPECT_SQUARE; |