OSDN Git Service

alsa: limit buffer_size to 32768 frames.
authorJustin Ruggles <justin.ruggles@gmail.com>
Wed, 22 Jun 2011 20:38:20 +0000 (16:38 -0400)
committerJustin Ruggles <justin.ruggles@gmail.com>
Sat, 9 Jul 2011 20:01:06 +0000 (16:01 -0400)
commite35c674d13a7f180412cfe058530a2e7f1d49a90
treea719cbd75f877a31902d100a920c36e9bf30c966
parent8bfd7f6a475225a0595bf657f8b99a8fffb461e4
alsa: limit buffer_size to 32768 frames.

In testing, the file output plugin gave a max buffer size of about 20 million
frames, which is way more than what is really needed and causes a memory
allocation error on my system.
libavdevice/alsa-audio-common.c
libavdevice/alsa-audio.h