FS-8864 #resolve [Improve video file playback]

This commit is contained in:
Anthony Minessale committed 2016-02-26 15:28:03 -06:00
1 parent 9dede6a347
commit 6334e1ce39
5 files changed
+254 -54

No files matched your search

+2 -2
View File
@@ -783,7 +783,7 @@ static switch_status_t switch_vpx_encode(switch_codec_t *codec, switch_frame_t *
context->codec_settings.video.height = height;
reset_codec_encoder(codec);
frame->flags |= SFF_PICTURE_RESET;
context->need_key_frame = 1;
context->need_key_frame = 3;
}
@@ -803,7 +803,7 @@ static switch_status_t switch_vpx_encode(switch_codec_t *codec, switch_frame_t *
now = switch_time_now();
if (context->need_key_frame != 0) {
if (context->need_key_frame > 0) {
// force generate a key frame
if (!context->last_key_frame || (now - context->last_key_frame) > KEY_FRAME_MIN_FREQ) {