Browse Source

pan: fix uninitialized channel_id variable.

Fix broken parsing with pan=2:FL=FR:FR=FL and similar.
tags/n0.11
Clément Bœsch Clément Bœsch 13 years ago
parent
commit
cba4e2cbbc
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavfilter/af_pan.c

+ 1
- 1
libavfilter/af_pan.c 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)) {


Loading…
Cancel
Save