[FFmpeg-devel] [PATCH 1/4] ffprobe: fix C escaping.

Clément Bœsch ubitux at gmail.com
Tue May 29 23:24:39 CEST 2012


---
 ffprobe.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ffprobe.c b/ffprobe.c
index d86ff0b..aa2b344 100644
--- a/ffprobe.c
+++ b/ffprobe.c
@@ -508,7 +508,7 @@ static const char *c_escape_str(AVBPrint *dst, const char *src, const char sep,
     const char *p;
 
     for (p = src; *p; p++) {
-        switch (*src) {
+        switch (*p) {
         case '\b': av_bprintf(dst, "%s", "\\b");  break;
         case '\f': av_bprintf(dst, "%s", "\\f");  break;
         case '\n': av_bprintf(dst, "%s", "\\n");  break;
-- 
1.7.10.2



More information about the ffmpeg-devel mailing list