[FFmpeg-cvslog] ffprobe/flat: add escape for '`' and '$'.

Clément Bœsch git at videolan.org
Mon Jun 4 19:15:52 CEST 2012


ffmpeg | branch: master | Clément Bœsch <ubitux at gmail.com> | Mon Jun  4 19:14:51 2012 +0200| [bae99f7651f2506d8f55ecf38ef444085e01b578] | committer: Clément Bœsch

ffprobe/flat: add escape for '`' and '$'.

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

 ffprobe.c |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/ffprobe.c b/ffprobe.c
index 295b815..19b9264 100644
--- a/ffprobe.c
+++ b/ffprobe.c
@@ -806,6 +806,8 @@ static const char *flat_escape_value_str(AVBPrint *dst, const char *src)
         case '\r': av_bprintf(dst, "%s", "\\r");  break;
         case '\\': av_bprintf(dst, "%s", "\\\\"); break;
         case '"':  av_bprintf(dst, "%s", "\\\""); break;
+        case '`':  av_bprintf(dst, "%s", "\\`");  break;
+        case '$':  av_bprintf(dst, "%s", "\\$");  break;
         default:   av_bprint_chars(dst, *p, 1);   break;
         }
     }



More information about the ffmpeg-cvslog mailing list