Mercurial > mplayer.hg
changeset 7612:bf7f2bd2eb24
10l
author | arpi |
---|---|
date | Sun, 06 Oct 2002 10:42:24 +0000 |
parents | 411886c03c54 |
children | ff6bcf692358 |
files | libaf/af.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/libaf/af.c Sun Oct 06 05:54:12 2002 +0000 +++ b/libaf/af.c Sun Oct 06 10:42:24 2002 +0000 @@ -435,7 +435,7 @@ if(in>max_insize) in=t*(max_insize/t); // Try to meet constraint nr 3. - while((out=t * (((in/t+1)*mul.n - 1)/mul.d)) <= max_outsize){ + while((out=t * (((in/t+1)*mul.n - 1)/mul.d)) <= max_outsize && in<=max_insize){ if( (t * (((in/t)*mul.n))/mul.d) >= len) return in; in+=t; }