Mercurial > mplayer.hg
changeset 23298:4726edea2edd
Make vd_raw VDCTRL_QUERY_FORMAT simpler to understand
author | reimar |
---|---|
date | Mon, 14 May 2007 18:21:39 +0000 |
parents | 0e85cec59e3b |
children | 0ee56ec36a40 |
files | libmpcodecs/vd_raw.c |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/libmpcodecs/vd_raw.c Mon May 14 06:07:04 2007 +0000 +++ b/libmpcodecs/vd_raw.c Mon May 14 18:21:39 2007 +0000 @@ -18,9 +18,10 @@ // to set/get/query special features/parameters static int control(sh_video_t *sh,int cmd,void* arg,...){ + int format = sh->bih ? sh->bih->biCompression : sh->format; switch(cmd){ case VDCTRL_QUERY_FORMAT: - if( (*((int*)arg)) == (sh->bih ? sh->bih->biCompression : sh->format) ) return CONTROL_TRUE; + if (*(int *)arg == format) return CONTROL_TRUE; return CONTROL_FALSE; } return CONTROL_UNKNOWN;