mkvtoolnix/tests/test-656mpeg_ts_bad_utf8_in_service_names2.rb
Moritz Bunkus 13821a724f
JSON identification: catch "out of space" exception in bad UTF-8 removal
This is the only exception that `::utf8::remove_invalid()` throws. If
it is encountered, simply stop processing the string further.

Fixes #2398.
2018-10-06 12:29:32 +02:00

6 lines
194 B
Ruby
Executable File

#!/usr/bin/ruby -w
# T_656mpeg_ts_bad_utf8_in_service_names2
describe "mkvmerge / bad UTF-8 encoded service names in MPEG transport streams"
test_identify "data/ts/bad_utf-8_service_names2.ts"