History

Fix to vpx_temporal_svc_encoder

Avoid division by zero.

Marco Paniconi committed 5 years ago

Commit 6c5377f1 parent 61edec11 file · +1 −0Browse files

Unified · Split

examples/vpx_temporal_svc_encoder.c+1−0
@@ -930,6 +930,7 @@ int main(int argc, char **argv) { · 929 unmodified lines
930 // Update for short-time encoding bitrate states, for moving window930 // Update for short-time encoding bitrate states, for moving window
931 // of size rc->window, shifted by rc->window / 2.931 // of size rc->window, shifted by rc->window / 2.
932 // Ignore first window segment, due to key frame.932 // Ignore first window segment, due to key frame.
933 if (rc.window_size == 0) rc.window_size = 15;
933 if (frame_cnt > rc.window_size) {934 if (frame_cnt > rc.window_size) {
934 sum_bitrate += 0.001 * 8.0 * pkt->data.frame.sz * framerate;935 sum_bitrate += 0.001 * 8.0 * pkt->data.frame.sz * framerate;
935 if (frame_cnt % rc.window_size == 0) {936 if (frame_cnt % rc.window_size == 0) {

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t