[FFmpeg-cvslog] pan: fix uninitialized channel_id variable.

Clément Bœsch git at videolan.org
Wed Feb 15 10:27:01 CET 2012


ffmpeg | branch: master | Clément Bœsch <clement.boesch at smartjog.com> | Tue Feb 14 13:46:40 2012 +0100| [cba4e2cbbcb8abb45fff1e0255934bb577ab799f] | committer: Clément Bœsch

pan: fix uninitialized channel_id variable.

Fix broken parsing with pan=2:FL=FR:FR=FL and similar.

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=cba4e2cbbcb8abb45fff1e0255934bb577ab799f
---

 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)) {



More information about the ffmpeg-cvslog mailing list