diff options
Diffstat (limited to 'audio/out/ao_lavc.c')
-rw-r--r-- | audio/out/ao_lavc.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/audio/out/ao_lavc.c b/audio/out/ao_lavc.c index 619f4fe72a..f247cba12e 100644 --- a/audio/out/ao_lavc.c +++ b/audio/out/ao_lavc.c @@ -160,6 +160,8 @@ static int init(struct ao *ao) ao->untimed = true; + ao->period_size = ac->aframesize * ac->framecount; + if (ao->channels.num > AV_NUM_DATA_POINTERS) goto fail; @@ -203,7 +205,7 @@ static void uninit(struct ao *ao) ac->shutdown = true; } -// return: how many bytes can be played without blocking +// return: how many samples can be played without blocking static int get_space(struct ao *ao) { struct priv *ac = ao->priv; |