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

Commit 86db96a7 authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "Fix Integer Overflow in WebmWriter" into main

parents d85a6838 7fb342b3
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -284,7 +284,7 @@ uint64_t WebmWriter::estimateCuesSize(int32_t bitRate) {

    // Max file size limit is set
    if (mMaxFileSizeLimitBytes != 0 && mIsFileSizeLimitExplicitlyRequested) {
        size = mMaxFileSizeLimitBytes * 6 / 1000;
        size = mMaxFileSizeLimitBytes / 1000 * 6;
    }

    // Max file duration limit is set