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

Commit abd5feee authored by Oscar Rydhé's avatar Oscar Rydhé Committed by Takeshi Aimi
Browse files

HLS: Fixed rounding error with decimal segment duration

If segment duration is specified with decimal value only the
integer value will be used, causing the stream duration to
be wrong.

Reported to Android public issue tracker:
https://code.google.com/p/android/issues/detail?id=56223

Change-Id: I34fb7a81af6ad3d9a214228cfe3724636ebf5ab5
parent 1f95555c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -608,7 +608,7 @@ status_t M3UParser::parseMetaDataDuration(
    if (meta->get() == NULL) {
        *meta = new AMessage;
    }
    (*meta)->setInt64(key, (int64_t)x * 1E6);
    (*meta)->setInt64(key, (int64_t)(x * 1E6));

    return OK;
}