Revision c7b913c8 libavformat/matroskadec.c

View differences:

libavformat/matroskadec.c
860 860
                return AVPROBE_SCORE_MAX;
861 861
    }
862 862

  
863
    return 0;
863
    // probably valid EBML header but no recognized doctype
864
    return AVPROBE_SCORE_MAX/2;
864 865
}
865 866

  
866 867
static MatroskaTrack *matroska_find_track_by_num(MatroskaDemuxContext *matroska,
......
1157 1158
        if (!strcmp(ebml.doctype, matroska_doctypes[i]))
1158 1159
            break;
1159 1160
    if (i >= FF_ARRAY_ELEMS(matroska_doctypes)) {
1160
        av_log(s, AV_LOG_ERROR, "Unknown EBML doctype '%s'\n", ebml.doctype);
1161
        ebml_free(ebml_syntax, &ebml);
1162
        return AVERROR_PATCHWELCOME;
1161
        av_log(s, AV_LOG_WARNING, "Unknown EBML doctype '%s'\n", ebml.doctype);
1163 1162
    }
1164 1163
    av_metadata_set2(&s->metadata, "doctype", ebml.doctype, 0);
1165 1164
    ebml_free(ebml_syntax, &ebml);

Also available in: Unified diff