mirror of
https://github.com/mpv-player/mpv
synced 2025-01-31 12:11:52 +00:00
should solve -vo vesa:vidix problem 'vosub_vidix: video server has
unsupported color depth by vidix (0)' - patch by Emiel Neggers <emiel@neggers.net> git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@7027 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
94d68eb455
commit
131935f8ad
@ -460,6 +460,13 @@ int vidix_init(unsigned src_width,unsigned src_height,
|
||||
,src_width,src_height,x_org,y_org,dst_width,dst_height
|
||||
,vo_format_name(format),dest_bpp,vid_w,vid_h);
|
||||
|
||||
if(vidix_query_fourcc(format) == 0)
|
||||
{
|
||||
printf("vosub_vidix: unsupported fourcc for this vidix driver: %x (%s)\n",
|
||||
format,vo_format_name(format));
|
||||
return -1;
|
||||
}
|
||||
|
||||
if(((vidix_cap.maxwidth != -1) && (vid_w > vidix_cap.maxwidth)) ||
|
||||
((vidix_cap.minwidth != -1) && (vid_w < vidix_cap.minwidth)) ||
|
||||
((vidix_cap.maxheight != -1) && (vid_h > vidix_cap.maxheight)) ||
|
||||
|
Loading…
Reference in New Issue
Block a user