mirror of
https://github.com/samsonjs/media.git
synced 2026-04-27 15:07:40 +00:00
Fix division by zero in MuxerWrapper
PiperOrigin-RevId: 653644998
This commit is contained in:
parent
1cbcd20851
commit
f8bdb7e59f
1 changed files with 1 additions and 1 deletions
|
|
@ -798,7 +798,7 @@ import org.checkerframework.checker.nullness.qual.MonotonicNonNull;
|
||||||
* there is no track data.
|
* there is no track data.
|
||||||
*/
|
*/
|
||||||
public int getAverageBitrate() {
|
public int getAverageBitrate() {
|
||||||
if (timeUs <= 0 || bytesWritten <= 0) {
|
if (timeUs <= 0 || bytesWritten <= 0 || timeUs == startTimeUs) {
|
||||||
return C.RATE_UNSET_INT;
|
return C.RATE_UNSET_INT;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue