[SCM] libav/experimental: Proper handling of trailing whitespaces Commited in SoC by Vitor Sessak on 2008-04-10 21:29:33

siretart at users.alioth.debian.org siretart at users.alioth.debian.org
Sun Jun 30 16:21:21 UTC 2013


The following commit has been merged in the experimental branch:
commit a78f2ccdd6eb1c2911073226cceac6e7a441e735
Author: Vitor Sessak <vitor1001 at gmail.com>
Date:   Sat May 24 20:39:55 2008 +0000

    Proper handling of trailing whitespaces
    Commited in SoC by Vitor Sessak on 2008-04-10 21:29:33
    
    Originally committed as revision 13308 to svn://svn.ffmpeg.org/ffmpeg/trunk

diff --git a/libavfilter/graphparser.c b/libavfilter/graphparser.c
index c1304e7..49a8bb1 100644
--- a/libavfilter/graphparser.c
+++ b/libavfilter/graphparser.c
@@ -120,6 +120,8 @@ static char *consume_string(const char **buf)
         case '[':
         case '=':
         case ',':
+        case ' ':
+        case '\n':
             *out++= 0;
             break;
         default:
@@ -128,6 +130,8 @@ static char *consume_string(const char **buf)
     } while(out[-1]);
 
     (*buf)--;
+    consume_whitespace(buf);
+
     return ret;
 }
 

-- 
Libav/FFmpeg packaging



More information about the pkg-multimedia-commits mailing list