pan: fix uninitialized channel_id variable.

Fix broken parsing with pan=2:FL=FR:FR=FL and similar.
This commit is contained in:
Clément Bœsch 2012-02-14 13:46:40 +01:00 committed by Clément Bœsch
parent 95317821ea
commit cba4e2cbbc
1 changed files with 1 additions and 1 deletions

View File

@ -61,7 +61,7 @@ typedef struct PanContext {
static int parse_channel_name(char **arg, int *rchannel, int *rnamed)
{
char buf[8];
int len, i, channel_id;
int len, i, channel_id = 0;
int64_t layout, layout0;
if (sscanf(*arg, " %7[A-Z] %n", buf, &len)) {