[FFmpeg-cvslog] ffprobe: fix C escaping.

Clément Bœsch git at videolan.org
Wed May 30 01:07:50 CEST 2012


ffmpeg | branch: master | Clément Bœsch <ubitux at gmail.com> | Tue May 29 23:16:03 2012 +0200| [8619362ff1de6605ffe6da8a42bdfe4fb7be75c1] | committer: Clément Bœsch

ffprobe: fix C escaping.

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

 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;



More information about the ffmpeg-cvslog mailing list