FS-10050: [core] chromakey add flag to detect keyframe

This commit is contained in:
Anthony Minessale
2017-03-01 11:38:57 -06:00
parent 8e08124a75
commit 129f6eb69b
4 changed files with 28 additions and 8 deletions
+1
View File
@@ -1178,6 +1178,7 @@ static switch_status_t switch_vpx_decode(switch_codec_t *codec, switch_frame_t *
}
if (is_keyframe) {
switch_set_flag(frame, SFF_IS_KEYFRAME);
if (context->got_key_frame <= 0) {
context->got_key_frame = 1;
context->no_key_frame = 0;