mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-24 13:56:33 +02:00
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)
|
static int parse_channel_name(char **arg, int *rchannel, int *rnamed)
|
||||||
{
|
{
|
||||||
char buf[8];
|
char buf[8];
|
||||||
int len, i, channel_id;
|
int len, i, channel_id = 0;
|
||||||
int64_t layout, layout0;
|
int64_t layout, layout0;
|
||||||
|
|
||||||
if (sscanf(*arg, " %7[A-Z] %n", buf, &len)) {
|
if (sscanf(*arg, " %7[A-Z] %n", buf, &len)) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user