From ca4b04754c116a3cd26fc29021682d73b6eb2e50 Mon Sep 17 00:00:00 2001 From: jp9000 Date: Thu, 27 Feb 2020 06:40:11 -0800 Subject: [PATCH] Revert "libobs: Fix audio keyframe issue" This reverts commit ff22c20019115adee471328f729588db0115f45f. This caused a bug in FTL output, which started hitching after this commit. Presumably due to opus; it's likely you're not supposed to do this with all audio encoders. --- libobs/obs-encoder.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/libobs/obs-encoder.c b/libobs/obs-encoder.c index 942d0d490..6ba2fafc6 100644 --- a/libobs/obs-encoder.c +++ b/libobs/obs-encoder.c @@ -931,11 +931,6 @@ void send_off_encoder_packet(obs_encoder_t *encoder, bool success, encoder->first_received = true; } - /* if packet is audio, mark as keyframe if it isn't already */ - if (pkt->type == OBS_ENCODER_AUDIO) { - pkt->keyframe = true; - } - /* we use system time here to ensure sync with other encoders, * you do not want to use relative timestamps here */ pkt->dts_usec = encoder->start_ts / 1000 +