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

Commit fd721deb authored by Dichen Zhang's avatar Dichen Zhang
Browse files

CCodecConfig: round frame rate instead of truncating to increase the

accuracy

Bug: b/228607622
Test: encode a video and print log
Change-Id: Iba455e8472a3f21c66b90b4ad994287773566b31
parent bbe73ba9
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -383,7 +383,7 @@ void CCodecConfig::initializeStandardParams() {
            // read back always as int
            float value;
            if (v.get(&value)) {
                return (int32_t)value;
                return (int32_t) (value + 0.5);
            }
            return C2Value();
        }));