Mercurial > mplayer.hg
changeset 30366:81bebbcb2de4
Remove the query_format_cache, it is extra complexity that makes improvements
difficult while the speed advantage in normal use cases is not measurable.
author | reimar |
---|---|
date | Sat, 23 Jan 2010 18:37:47 +0000 |
parents | be05cd2be61a |
children | 2db4c1158df9 |
files | libmpcodecs/vf_scale.c |
diffstat | 1 files changed, 1 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/libmpcodecs/vf_scale.c Sat Jan 23 18:28:47 2010 +0000 +++ b/libmpcodecs/vf_scale.c Sat Jan 23 18:37:47 2010 +0000 @@ -30,7 +30,6 @@ int interlaced; int noup; int accurate_rnd; - int query_format_cache[64]; } const vf_priv_dflt = { -1,-1, 0, @@ -102,11 +101,7 @@ // find the best outfmt: for(i=0; outfmt_list[i]; i++){ const int format= outfmt_list[i]; - int ret= vf->priv->query_format_cache[i]-1; - if(ret == -1){ - ret= vf_next_query_format(vf, outfmt_list[i]); - vf->priv->query_format_cache[i]= ret+1; - } + int ret = vf_next_query_format(vf, format); mp_msg(MSGT_VFILTER,MSGL_DBG2,"scale: query(%s) -> %d\n",vo_format_name(format),ret&3); if(ret&VFCAP_CSP_SUPPORTED_BY_HW){