Backed out changeset 2154b98caca7 (bug 1924925) for causing build bustages. CLOSED TREE

This commit is contained in:
Alexandru Marc 2024-10-17 18:02:22 +03:00
parent 27d6b82c57
commit 7753a4a25e
4 changed files with 4 additions and 10 deletions

View File

@ -618,10 +618,12 @@ bool FlacTrackDemuxer::Init() {
do {
uint32_t read = 0;
nsresult ret = mSource.ReadAt(offset, buffer, BUFFER_SIZE, &read);
if (NS_FAILED(ret)) {
if (NS_FAILED(ret) || read < BUFFER_SIZE) {
// Assume that if we can't read that many bytes while parsing the header,
// that something is wrong.
return false;
}
if (!mParser->IsHeaderBlock(ubuffer, read)) {
if (!mParser->IsHeaderBlock(ubuffer, BUFFER_SIZE)) {
// Not a header and we haven't reached the end of the metadata blocks.
// Will fall back to using the frames header instead.
break;

View File

@ -84,7 +84,6 @@ support-files = [
"8ch-s16.wav",
"../../webrtc/tests/mochitests/mediaStreamPlayback.js",
"../../webrtc/tests/mochitests/head.js",
"0-frame.flac"
]
["test_OfflineAudioContext.html"]

View File

@ -91,13 +91,6 @@
"samplerate": 8000,
"frameCount": 8192,
"fuzz" : {}
},
{
// Bug 1924925 - Valid flac file that is very small.
"path": "tiny.flac",
"samplerate": 22500,
"frameCount": 2271,
"fuzz" : {}
}
];

Binary file not shown.