mirror of
https://github.com/mpv-player/mpv
synced 2025-04-09 19:22:05 +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:
parent
7facff64ef
commit
00d5bd330e
@ -57,6 +57,8 @@ static int control(sh_video_t *sh,int cmd,void* arg,...){
|
|||||||
switch(cmd){
|
switch(cmd){
|
||||||
case VDCTRL_QUERY_FORMAT:
|
case VDCTRL_QUERY_FORMAT:
|
||||||
if( (*((int*)arg)) == IMGFMT_YV12 ) return CONTROL_TRUE;
|
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;
|
if( (*((int*)arg)) == IMGFMT_YUY2 && ctx->yuy2_support ) return CONTROL_TRUE;
|
||||||
return CONTROL_FALSE;
|
return CONTROL_FALSE;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user