mirror of https://github.com/mpv-player/mpv
Simplify loop condition
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30407 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
a30dbabd9f
commit
f1714582b2
|
@ -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){
|
||||
|
|
Loading…
Reference in New Issue