提交 03d870bb authored 作者: Anthony Minessale's avatar Anthony Minessale 提交者: Michael Jerris

FS-7508: revert chage to debounce key reqs

上级 1060644a
...@@ -74,7 +74,6 @@ struct vpx_context { ...@@ -74,7 +74,6 @@ struct vpx_context {
uint8_t decoder_init; uint8_t decoder_init;
switch_buffer_t *vpx_packet_buffer; switch_buffer_t *vpx_packet_buffer;
int got_key_frame; int got_key_frame;
int key_count;
switch_size_t last_received_timestamp; switch_size_t last_received_timestamp;
switch_bool_t last_received_complete_picture; switch_bool_t last_received_complete_picture;
int need_key_frame; int need_key_frame;
...@@ -480,7 +479,6 @@ static switch_status_t buffer_vpx_packets(vpx_context_t *context, switch_frame_t ...@@ -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) { if (is_keyframe && !context->got_key_frame) {
context->got_key_frame = 1; context->got_key_frame = 1;
context->key_count = 0;
} }
} }
...@@ -586,9 +584,7 @@ end: ...@@ -586,9 +584,7 @@ end:
} }
if (!context->got_key_frame) { 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);
}
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论