mirror of
https://github.com/mpv-player/mpv
synced 2025-01-11 17:39:38 +00:00
Reinitialize some variables on af_resample reinit, fixes crash
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21074 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
e4a54f7196
commit
2d3d563b15
@ -220,6 +220,8 @@ static int control(struct af_instance_s* af, int cmd, void* arg)
|
||||
int j;
|
||||
s->up = af->data->rate/d;
|
||||
s->dn = n->rate/d;
|
||||
s->wi = 0;
|
||||
s->i = 0;
|
||||
|
||||
// Calculate cuttof frequency for filter
|
||||
fc = 1/(float)(max(s->up,s->dn));
|
||||
|
Loading…
Reference in New Issue
Block a user