• Philip Jägenstedt's avatar
    ebml: Validate 7-bit ASCII in gst_ebml_read_ascii · c712d287
    Philip Jägenstedt authored
    This was triggering an UTF-8 assertion in gst_caps_set_simple for
    corrupt files with garbage as codec id. Test case:
    Old gst_ebml_read_ascii renamed to gst_ebml_read_string, also used by
    gst_ebml_read_utf8. Unlike for UTF-8, failure to validate is an error,
    as gst_ebml_read_ascii is used for reading doctype and codec id and we
    might just as well give up early in those cases.
ebml-read.c 24 KB