0
0
mirror of https://github.com/mpv-player/mpv.git synced 2024-09-20 20:03:10 +02:00

More simplification

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22080 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
reimar 2007-01-30 19:00:54 +00:00
parent fa1176f636
commit 312341466d

View File

@ -39,8 +39,7 @@ static int control (sh_video_t *sh, int cmd, void* arg, ...)
//printf("[%s] Query!! (%s)\n", MOD_NAME, (codec==IMGFMT_YV12)?"YV12":"none");
switch(cmd){
case VDCTRL_QUERY_FORMAT:
if( (*((int*)arg)) == IMGFMT_BGR24 && priv->codec == IMGFMT_BGR24) return CONTROL_TRUE;
if( (*((int*)arg)) == IMGFMT_YV12 && priv->codec == IMGFMT_YV12) return CONTROL_TRUE;
if (*(int *)arg == priv->codec) return CONTROL_TRUE;
return CONTROL_FALSE;
}
return CONTROL_UNKNOWN;