diff options
author | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2010-01-23 18:28:47 +0000 |
---|---|---|
committer | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2010-01-23 18:28:47 +0000 |
commit | f1714582b280a6e5fe7e4a6134e2e253421868a3 (patch) | |
tree | 93558d83d41952bfdb3a34564ca9dc78cedf921b /libmpcodecs | |
parent | a30dbabd9f29870103d19718ec033fe194cfb635 (diff) |
Simplify loop condition
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30407 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpcodecs')
-rw-r--r-- | libmpcodecs/vf_scale.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libmpcodecs/vf_scale.c b/libmpcodecs/vf_scale.c index 914ad7982c..81fad3d33c 100644 --- a/libmpcodecs/vf_scale.c +++ b/libmpcodecs/vf_scale.c @@ -100,7 +100,7 @@ static unsigned int find_best_out(vf_instance_t *vf){ 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){ |