зеркало из https://github.com/mozilla/gecko-dev.git
Bug 918135 - Reduce MAX_SKIPPED_BYTES in MP3FrameParser r=cpearce
Now that we have stopped counting ID3 tags towards our count of non-MP3 data in the MP3 frame parser, our threshold for claiming a stream is not MP3 can be far lower than before.
This commit is contained in:
Родитель
74c1422fc6
Коммит
74bbe22522
|
@ -300,7 +300,7 @@ FindNumVBRFrames(const nsAutoCString& aFrame)
|
||||||
// Some MP3's have large ID3v2 tags, up to 150KB, so we allow lots of
|
// Some MP3's have large ID3v2 tags, up to 150KB, so we allow lots of
|
||||||
// skipped bytes to be read, just in case, before we give up and assume
|
// skipped bytes to be read, just in case, before we give up and assume
|
||||||
// we're not parsing an MP3 stream.
|
// we're not parsing an MP3 stream.
|
||||||
static const uint32_t MAX_SKIPPED_BYTES = 200 * 1024;
|
static const uint32_t MAX_SKIPPED_BYTES = 4096;
|
||||||
|
|
||||||
// The number of audio samples per MP3 frame. This is constant over all MP3
|
// The number of audio samples per MP3 frame. This is constant over all MP3
|
||||||
// streams. With this constant, the stream's sample rate, and an estimated
|
// streams. With this constant, the stream's sample rate, and an estimated
|
||||||
|
|
Загрузка…
Ссылка в новой задаче