From ca6dd53a734d6fc453de425340d7e9ec4ef385b5 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Sat, 12 Apr 2014 20:13:13 +0200 Subject: [PATCH] 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 --- ffprobe.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 } };