You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
matroska: honor error_recognition on unknown doctypes
This commit is contained in:
@@ -1346,6 +1346,10 @@ static int matroska_read_header(AVFormatContext *s)
|
||||
break;
|
||||
if (i >= FF_ARRAY_ELEMS(matroska_doctypes)) {
|
||||
av_log(s, AV_LOG_WARNING, "Unknown EBML doctype '%s'\n", ebml.doctype);
|
||||
if (matroska->ctx->error_recognition & AV_EF_EXPLODE) {
|
||||
ebml_free(ebml_syntax, &ebml);
|
||||
return AVERROR_INVALIDDATA;
|
||||
}
|
||||
}
|
||||
ebml_free(ebml_syntax, &ebml);
|
||||
|
||||
|
Reference in New Issue
Block a user