Skip to content

Commit af72019

Browse files
author
Clement Champetier
committed
VideoProperties: refactored getBitRate
The local variable 'bitsPerByte' is not necessary.
1 parent 81269a4 commit af72019

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/AvTranscoder/properties/VideoProperties.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -373,8 +373,7 @@ size_t VideoProperties::getBitRate() const
373373
break;
374374
}
375375

376-
int bitsPerByte = 8;
377-
return (gopFramesSize / getGopSize()) * bitsPerByte * getFps();
376+
return (gopFramesSize / getGopSize()) * 8 * getFps();
378377
}
379378

380379
size_t VideoProperties::getMaxBitRate() const

0 commit comments

Comments
 (0)