Mercurial > mplayer.hg
changeset 22062:56adbcf864de
More simplification
author | reimar |
---|---|
date | Tue, 30 Jan 2007 19:00:54 +0000 |
parents | 6b82ba8d011b |
children | 34bc7e626d2b |
files | libmpcodecs/vd_lzo.c |
diffstat | 1 files changed, 1 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/libmpcodecs/vd_lzo.c Tue Jan 30 18:53:53 2007 +0000 +++ b/libmpcodecs/vd_lzo.c Tue Jan 30 19:00:54 2007 +0000 @@ -39,8 +39,7 @@ //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;