Browse Source

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.
jp9000 5 years ago
parent
commit
ca4b04754c
1 changed files with 0 additions and 5 deletions
  1. 0 5
      libobs/obs-encoder.c

+ 0 - 5
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 +