Browse Source

matroskadec: Fix null pointer exception on corrupted input.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n0.11
Michael Niedermayer 13 years ago
parent
commit
d9fe6b926c
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavformat/matroskadec.c

+ 1
- 1
libavformat/matroskadec.c View File

@@ -1377,7 +1377,7 @@ static int matroska_read_header(AVFormatContext *s)
/* First read the EBML header. */
if (ebml_parse(matroska, ebml_syntax, &ebml)
|| ebml.version > EBML_VERSION || ebml.max_size > sizeof(uint64_t)
|| ebml.id_length > sizeof(uint32_t) || ebml.doctype_version > 3) {
|| ebml.id_length > sizeof(uint32_t) || ebml.doctype_version > 3 || !ebml.doctype) {
av_log(matroska->ctx, AV_LOG_ERROR,
"EBML header using unsupported features\n"
"(EBML version %"PRIu64", doctype %s, doc version %"PRIu64")\n",


Loading…
Cancel
Save