Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6f8b9fef authored by Steve Kondik's avatar Steve Kondik Committed by Gerrit Code Review
Browse files

Merge "FLACExtractor: Don't check size of first STREAMINFO" into ics

parents c41fcc38 6a572dc6
Loading
Loading
Loading
Loading
+2 −6
Original line number Diff line number Diff line
@@ -793,13 +793,9 @@ bool SniffFLAC(
        const sp<DataSource> &source, String8 *mimeType, float *confidence,
        sp<AMessage> *)
{
    // first 4 is the signature word
    // second 4 is the sizeof STREAMINFO
    // 042 is the mandatory STREAMINFO
    // no need to read rest of the header, as a premature EOF will be caught later
    uint8_t header[4+4];
    uint8_t header[4];
    if (source->readAt(0, header, sizeof(header)) != sizeof(header)
            || memcmp("fLaC\0\0\0\042", header, 4+4))
            || memcmp("fLaC", header, 4))
    {
        return false;
    }