summaryrefslogtreecommitdiff
path: root/libavutil/avstring.c
diff options
context:
space:
mode:
authorStefano Sabatini <stefasab@gmail.com>2011-10-14 15:17:48 +0200
committerStefano Sabatini <stefasab@gmail.com>2011-10-18 18:21:03 +0200
commit2f3b028c7117e03267ea7f88d0d612e70f1afc06 (patch)
treee68d8bd0f432654daac82272d1e16d0ab0482e98 /libavutil/avstring.c
parent284aa07932264853dd645f62db9668774cbef2a1 (diff)
ffprobe: redesign json_escape_str(), to make use of a global buffer
The new code avoids to call av_malloc/av_free when escaping is needed (possibly faster), avoids an integer overflow in case of a huge string, and provides feedback when a string cannot be escaped. When a string cannot be escaped, a special string is printed instead.
Diffstat (limited to 'libavutil/avstring.c')
0 files changed, 0 insertions, 0 deletions