From 68daf88d48a7d66a92db8cd7a3d1ccbc66bf35c1 Mon Sep 17 00:00:00 2001 From: nick Date: Fri, 1 Feb 2002 10:20:00 +0000 Subject: [PATCH] Alex! Never write bottlenecks, ok? git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@4460 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libvo/vo_xvidix.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/libvo/vo_xvidix.c b/libvo/vo_xvidix.c index 1a15072d4e..ad546e41ab 100644 --- a/libvo/vo_xvidix.c +++ b/libvo/vo_xvidix.c @@ -202,7 +202,7 @@ static uint32_t config(uint32_t width, uint32_t height, uint32_t d_width, image_height = height; image_width = width; image_format = format; - + if (IMGFMT_IS_RGB(format)) { image_depth = IMGFMT_RGB_DEPTH(format); @@ -225,9 +225,10 @@ static uint32_t config(uint32_t width, uint32_t height, uint32_t d_width, image_depth = 16; break; default: + image_depth = 16; mp_msg(MSGT_VO, MSGL_FATAL, "Unknown image format: %s\n", vo_format_name(format)); - return(-1); + break; } if (X_already_started)