mirror of https://git.ffmpeg.org/ffmpeg.git
pan: fix uninitialized channel_id variable.
Fix broken parsing with pan=2:FL=FR:FR=FL and similar.
This commit is contained in:
parent
95317821ea
commit
cba4e2cbbc
|
@ -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…
Reference in New Issue