mkvtoolnix/tests/test-643mpeg_ts_bad_utf8_in_service_names.rb
Moritz Bunkus 4eefc50110
JSON identification: replace invalid UTF-8 bytes with placeholder characters
nlohmann's JSON libraries in version 2.x used to strip bytes that
aren't valid UTF-8 from strings (e.g. service/station names in MPEG
transport streams) before outputting the JSON data structures. With
MKVToolNix v24 that bundled library was updated to v3 which now throws
an exception on such invalid data.

Therefore mkvmerge now takes care of replacing invalid bytes with
placeholder characters itself before passing the strings to nlohmann's
JSON library.

Fixes #2327.
2018-06-15 17:45:22 +02:00

6 lines
220 B
Ruby
Executable File

#!/usr/bin/ruby -w
# T_643mpeg_ts_bad_utf8_in_service_names
describe "mkvmerge / identification of MPEG transport streams with invalid UTF-8 strings for service names"
test_identify "data/ts/bad_utf-8_service_names.ts"