FS-7508: revert chage to debounce key reqs

This commit is contained in:
Anthony Minessale 2014-12-02 18:39:53 -06:00 committed by Michael Jerris
parent 1060644a6b
commit 03d870bb19
1 changed files with 1 additions and 5 deletions

View File

@ -74,7 +74,6 @@ struct vpx_context {
uint8_t decoder_init;
switch_buffer_t *vpx_packet_buffer;
int got_key_frame;
int key_count;
switch_size_t last_received_timestamp;
switch_bool_t last_received_complete_picture;
int need_key_frame;
@ -480,7 +479,6 @@ static switch_status_t buffer_vpx_packets(vpx_context_t *context, switch_frame_t
if (is_keyframe && !context->got_key_frame) {
context->got_key_frame = 1;
context->key_count = 0;
}
}
@ -586,9 +584,7 @@ end:
}
if (!context->got_key_frame) {
if (!(context->key_count++ % 20)) {
switch_set_flag(frame, SFF_WAIT_KEY_FRAME);
}
switch_set_flag(frame, SFF_WAIT_KEY_FRAME);
}