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

Commit d707ac5a authored by Ronghua Wu's avatar Ronghua Wu Committed by Android (Google) Code Review
Browse files

Merge "libstagefright: add xml parsing for measured-frame-rate and...

Merge "libstagefright: add xml parsing for measured-frame-rate and measured-blocks-per-second." into mnc-dev
parents 11bf6d35 795697e9
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -886,14 +886,16 @@ status_t MediaCodecList::addLimit(const char **attrs) {
        return -EINVAL;
    }

    // size, blocks, bitrate, frame-rate, blocks-per-second, aspect-ratio: range
    // size, blocks, bitrate, frame-rate, blocks-per-second, aspect-ratio,
    // measured-frame-rate, measured-blocks-per-second: range
    // quality: range + default + [scale]
    // complexity: range + default
    bool found;

    if (name == "aspect-ratio" || name == "bitrate" || name == "block-count"
            || name == "blocks-per-second" || name == "complexity"
            || name == "frame-rate" || name == "quality" || name == "size") {
            || name == "frame-rate" || name == "quality" || name == "size"
            || name == "measured-blocks-per-second" || name == "measured-frame-rate") {
        AString min, max;
        if (msg->findString("min", &min) && msg->findString("max", &max)) {
            min.append("-");