summaryrefslogtreecommitdiffstats
path: root/libvo
diff options
context:
space:
mode:
authornick <nick@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-02-01 10:20:00 +0000
committernick <nick@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-02-01 10:20:00 +0000
commit68daf88d48a7d66a92db8cd7a3d1ccbc66bf35c1 (patch)
treecd3dd6450421e8305c8c4fff2b85ea1ad4323888 /libvo
parente815c5f44c77cf9953b78a07b0cb37545fc78610 (diff)
downloadmpv-68daf88d48a7d66a92db8cd7a3d1ccbc66bf35c1.tar.bz2
mpv-68daf88d48a7d66a92db8cd7a3d1ccbc66bf35c1.tar.xz
Alex! Never write bottlenecks, ok?
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@4460 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libvo')
-rw-r--r--libvo/vo_xvidix.c5
1 files 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)