summaryrefslogtreecommitdiff
path: root/ffprobe.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-04-12 20:13:13 +0200
committerMichael Niedermayer <michaelni@gmx.at>2014-04-13 15:21:20 +0200
commitca6dd53a734d6fc453de425340d7e9ec4ef385b5 (patch)
treee825ac8a07cd480f747adf9e3a9e1c3a81dd6dbf /ffprobe.c
parente311b7446a8c4443c5d17f743ef2d3aae8204386 (diff)
downloadffmpeg-ca6dd53a734d6fc453de425340d7e9ec4ef385b5.tar.gz
ffprobe: do not lose non ascii characters in non utf8 strings
Fixes Ticket3363 Using U+FFFD REPLACEMENT CHARACTER as suggested by nicolas Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'ffprobe.c')
-rw-r--r--ffprobe.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ffprobe.c b/ffprobe.c
index ef3bcc63f6..9e39ff7fa9 100644
--- a/ffprobe.c
+++ b/ffprobe.c
@@ -336,7 +336,7 @@ static const AVOption writer_options[] = {
{ "replace", NULL, 0, AV_OPT_TYPE_CONST, {.i64 = WRITER_STRING_VALIDATION_REPLACE}, .unit = "sv" },
{ "fail", NULL, 0, AV_OPT_TYPE_CONST, {.i64 = WRITER_STRING_VALIDATION_FAIL}, .unit = "sv" },
{ "string_validation_replacement", "set string validation replacement string", OFFSET(string_validation_replacement), AV_OPT_TYPE_STRING, {.str=""}},
- { "svr", "set string validation replacement string", OFFSET(string_validation_replacement), AV_OPT_TYPE_STRING, {.str=""}},
+ { "svr", "set string validation replacement string", OFFSET(string_validation_replacement), AV_OPT_TYPE_STRING, {.str="\xEF\xBF\xBD"}},
{ NULL }
};