Mercurial > mplayer.hg
changeset 30365:be05cd2be61a
Simplify loop condition
author | reimar |
---|---|
date | Sat, 23 Jan 2010 18:28:47 +0000 |
parents | bdf8e23db3f6 |
children | 81bebbcb2de4 |
files | libmpcodecs/vf_scale.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/libmpcodecs/vf_scale.c Sat Jan 23 15:41:58 2010 +0000 +++ b/libmpcodecs/vf_scale.c Sat Jan 23 18:28:47 2010 +0000 @@ -100,7 +100,7 @@ int i; // find the best outfmt: - for(i=0; i<sizeof(outfmt_list)/sizeof(int)-1; i++){ + 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){