diff options
author | anders <anders@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2002-10-03 12:43:39 +0000 |
---|---|---|
committer | anders <anders@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2002-10-03 12:43:39 +0000 |
commit | 94f26b18df137fdc3b7faee6637cd52dd90575c0 (patch) | |
tree | d78914623f2db36ae47a34500c693d1fb40e0b5b /libaf/af.c | |
parent | 7ca1ef4974a05ddf98eda4c39b88f652738ed13e (diff) | |
download | mpv-94f26b18df137fdc3b7faee6637cd52dd90575c0.tar.bz2 mpv-94f26b18df137fdc3b7faee6637cd52dd90575c0.tar.xz |
Fixing the fix buffer overrun should work now
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@7591 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libaf/af.c')
-rw-r--r-- | libaf/af.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libaf/af.c b/libaf/af.c index 35e2a925a5..9313dffd27 100644 --- a/libaf/af.c +++ b/libaf/af.c @@ -370,7 +370,7 @@ af_data_t* af_play(af_stream_t* s, af_data_t* data) needed */ inline int af_lencalc(frac_t mul, af_data_t* d){ register int t = d->bps*d->nch; - return t*(((d->len/t)*mul.n + 1)/mul.d); + return t*(((d->len/t)*mul.n)/mul.d + 1); } /* Calculate how long the output from the filters will be given the |