Extend the MP3/AAC/AC3 header search to the first 1 MB of a file (up from 256 KB).

This commit is contained in:
Moritz Bunkus 2009-07-16 19:56:25 +02:00
parent 14a85edb20
commit 99646bc303

View File

@ -349,7 +349,7 @@ get_file_type(filelist_t &file) {
else {
// File types which are the same in raw format and in other container formats.
// Detection requires 20 or more consecutive packets.
static const int s_probe_sizes[] = { 32 * 1024, 64 * 1024, 128 * 1024, 256 * 1024, 0 };
static const int s_probe_sizes[] = { 32 * 1024, 64 * 1024, 128 * 1024, 256 * 1024, 512 * 1024, 1024 * 1024, 0 };
static const int s_probe_num_required_consecutive_packets = 20;
int i;