mirror of
https://gitlab.com/mbunkus/mkvtoolnix.git
synced 2024-12-24 11:54:01 +00:00
Move the MPEG ES detection further back because it is not very precise and misdetects other stuff (e.g. MP3 frames...).
This commit is contained in:
parent
be2adf1aba
commit
71cfef481f
@ -285,8 +285,6 @@ get_file_type(const string &filename) {
|
||||
type = TYPEQTMP4;
|
||||
else if (tta_reader_c::probe_file(mm_io, size))
|
||||
type = TYPETTA;
|
||||
else if (mpeg_es_reader_c::probe_file(mm_io, size))
|
||||
type = TYPEMPEG;
|
||||
else {
|
||||
for (i = 0; (probe_sizes[i] != 0) && (type == TYPEUNKNOWN); i++)
|
||||
if (mp3_reader_c::probe_file(mm_io, size, probe_sizes[i], 5))
|
||||
@ -300,8 +298,10 @@ get_file_type(const string &filename) {
|
||||
type = TYPEMP3;
|
||||
else if (dts_reader_c::probe_file(mm_io, size))
|
||||
type = TYPEDTS;
|
||||
else if (aac_reader_c::probe_file(mm_io, size))
|
||||
else if (aac_reader_c::probe_file(mm_io, size, 2 * 1024 * 1024, 10))
|
||||
type = TYPEAAC;
|
||||
else if (mpeg_es_reader_c::probe_file(mm_io, size))
|
||||
type = TYPEMPEG;
|
||||
else {
|
||||
delete mm_io;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user