summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Roitzsch <mroi@users.sourceforge.net>2002-06-17 15:17:15 +0000
committerMichael Roitzsch <mroi@users.sourceforge.net>2002-06-17 15:17:15 +0000
commita7030c15b492e8c3725476335df4afbfc6ef82cf (patch)
treeeb3ef6df30f2896e4508221b8c43db63ae3ddbe2
parent8dbfd21aa1522b31f143d73bd226c2c8ec3c52fb (diff)
downloadxine-lib-a7030c15b492e8c3725476335df4afbfc6ef82cf.tar.gz
xine-lib-a7030c15b492e8c3725476335df4afbfc6ef82cf.tar.bz2
do not switch to 4:3 aspect when receiving illegal ratio codes
ignore them instead and keep current setting CVS patchset: 2087 CVS date: 2002/06/17 15:17:15
-rw-r--r--src/dxr3/video_out_dxr3.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/dxr3/video_out_dxr3.c b/src/dxr3/video_out_dxr3.c
index 3cadc0c1a..1a1e2bc86 100644
--- a/src/dxr3/video_out_dxr3.c
+++ b/src/dxr3/video_out_dxr3.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: video_out_dxr3.c,v 1.27 2002/06/15 10:42:21 mroi Exp $
+ * $Id: video_out_dxr3.c,v 1.28 2002/06/17 15:17:15 mroi Exp $
*/
/* mpeg1 encoding video out plugin for the dxr3.
@@ -437,8 +437,9 @@ static void dxr3_update_frame_format(vo_driver_t *this_gen, vo_frame_t *frame_ge
frame_gen->base[0] = frame_gen->base[1] = frame_gen->base[2] = NULL;
}
- if (ratio_code < 3 || ratio_code> 4) aspect = ASPECT_FULL;
- else aspect = ASPECT_ANAMORPHIC;
+ aspect = this->aspect;
+ if (ratio_code == 1 || ratio_code == 2) aspect = ASPECT_FULL;
+ if (ratio_code == 3 || ratio_code == 4) aspect = ASPECT_ANAMORPHIC;
if(this->aspect != aspect)
dxr3_set_property(this_gen, VO_PROP_ASPECT_RATIO, aspect);