1
0
mirror of https://github.com/mpv-player/mpv synced 2025-04-01 23:00:41 +00:00

accept I420/IYUV in query_format

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@5708 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
arpi 2002-04-19 23:11:30 +00:00
parent 7facff64ef
commit 00d5bd330e

View File

@ -57,6 +57,8 @@ static int control(sh_video_t *sh,int cmd,void* arg,...){
switch(cmd){
case VDCTRL_QUERY_FORMAT:
if( (*((int*)arg)) == IMGFMT_YV12 ) return CONTROL_TRUE;
if( (*((int*)arg)) == IMGFMT_IYUV ) return CONTROL_TRUE;
if( (*((int*)arg)) == IMGFMT_I420 ) return CONTROL_TRUE;
if( (*((int*)arg)) == IMGFMT_YUY2 && ctx->yuy2_support ) return CONTROL_TRUE;
return CONTROL_FALSE;
}