mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-10-09 21:14:02 +00:00
FS-8864 #resolve [Improve video file playback]
This commit is contained in:
1 parent
9dede6a347
commit
6334e1ce39
5 files changed
+254
-54
No files matched your search
+2
-2
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user