You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-11-23 21:54:53 +02:00
ffprobe: add support to '\b' and '\f' escaping in c_escape_str()
This commit is contained in:
@@ -505,6 +505,8 @@ static const char *c_escape_str(AVBPrint *dst, const char *src, const char sep,
|
||||
|
||||
for (p = src; *p; p++) {
|
||||
switch (*src) {
|
||||
case '\b': av_bprintf(dst, "%s", "\\b"); break;
|
||||
case '\f': av_bprintf(dst, "%s", "\\f"); break;
|
||||
case '\n': av_bprintf(dst, "%s", "\\n"); break;
|
||||
case '\r': av_bprintf(dst, "%s", "\\r"); break;
|
||||
case '\\': av_bprintf(dst, "%s", "\\\\"); break;
|
||||
|
||||
Reference in New Issue
Block a user