[FFmpeg-devel] [PATCH 3/3] pan: fix uninitialized channel_id variable.
Clément Bœsch
ubitux at gmail.com
Tue Feb 14 13:55:45 CET 2012
From: Clément Bœsch <clement.boesch at smartjog.com>
Fix broken parsing with pan=2:FL=FR:FR=FL and similar.
---
libavfilter/af_pan.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/libavfilter/af_pan.c b/libavfilter/af_pan.c
index 354e771..9f293a6 100644
--- a/libavfilter/af_pan.c
+++ b/libavfilter/af_pan.c
@@ -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)) {
--
1.7.9
More information about the ffmpeg-devel
mailing list