diff options
author | wm4 <wm4@nowhere> | 2013-06-16 18:47:02 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2013-06-16 19:32:18 +0200 |
commit | f88193091b3de59b496633682b659cd388e24a59 (patch) | |
tree | 2dd817c703d169716c17a45d172e8f36353621ac /audio/out/ao_lavc.c | |
parent | c8c70dce5719576648489f9d2bad1cf9b61495a1 (diff) | |
download | mpv-f88193091b3de59b496633682b659cd388e24a59.tar.bz2 mpv-f88193091b3de59b496633682b659cd388e24a59.tar.xz |
audio/out: don't require AOs to set ao->bps
Some still do, because they use the value in other places of the init
function. ao_portaudio is tricky and reads ao->bps in the stream
thread, which might be started on initialization (not sure about that,
but better safe than sorry).
Diffstat (limited to 'audio/out/ao_lavc.c')
-rw-r--r-- | audio/out/ao_lavc.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/audio/out/ao_lavc.c b/audio/out/ao_lavc.c index e30b3182d2..d2ae5e1e53 100644 --- a/audio/out/ao_lavc.c +++ b/audio/out/ao_lavc.c @@ -285,7 +285,6 @@ out_takefirst: ao->outburst = ac->aframesize * ac->sample_size * ao->channels.num * ac->framecount; ao->buffersize = ao->outburst * 2; - ao->bps = ao->channels.num * ao->samplerate * ac->sample_size; ao->untimed = true; ao->priv = ac; |