Commit 6ce0bcea authored by Ghislain MARY's avatar Ghislain MARY
Browse files

Force VP8 keyframe on encoder preprocess only when AVPF is enabled +...

Force VP8 keyframe on encoder preprocess only when AVPF is enabled + initialize video starter only on first encoder preprocess.
parent 0fd03f12
......@@ -197,10 +197,11 @@ static void enc_preprocess(MSFilter *f) {
vpx_codec_control(&s->codec, VP8E_SET_TOKEN_PARTITIONS, 0);
}
s->force_keyframe = TRUE;
s->invalid_frame_reported = FALSE;
vp8rtpfmt_packer_init(&s->packer);
if (s->avpf_enabled != TRUE) {
if (s->avpf_enabled == TRUE) {
s->force_keyframe = TRUE;
} else if (s->frame_count == 0) {
ms_video_starter_init(&s->starter);
}
s->ready = TRUE;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment