mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-10 13:29:58 -05:00
Make sure the array is never too small.
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/ossman@388 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
parent
b69d881eb2
commit
3728854bc9
1 changed files with 1 additions and 1 deletions
|
|
@ -92,7 +92,7 @@ fail:
|
|||
|
||||
int pa_oss_auto_format(int fd, struct pa_sample_spec *ss) {
|
||||
int format, channels, speed, reqformat;
|
||||
static const int format_trans[] = {
|
||||
static const int format_trans[PA_SAMPLE_MAX] = {
|
||||
[PA_SAMPLE_U8] = AFMT_U8,
|
||||
[PA_SAMPLE_ALAW] = AFMT_A_LAW,
|
||||
[PA_SAMPLE_ULAW] = AFMT_MU_LAW,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue