ソースを参照

libobs: Do not set p-frames to highest priority

P-frames were initially set as highest priority to prevent them from
being dropped (not sure what the rationale was behind this), but this
caused a problem where if there's too much congestion for whatever
reason data will continue to stay buffered, so to prevent this p-frames
should be droppable.
jp9000 9 年 前
コミット
7d5df34a6b
1 ファイル変更1 行追加6 行削除
  1. 1 6
      libobs/obs-avc.c

+ 1 - 6
libobs/obs-avc.c

@@ -94,12 +94,7 @@ const uint8_t *obs_avc_find_startcode(const uint8_t *p, const uint8_t *end)
 
 static inline int get_drop_priority(int priority)
 {
-	switch (priority) {
-	case OBS_NAL_PRIORITY_DISPOSABLE: return OBS_NAL_PRIORITY_DISPOSABLE;
-	case OBS_NAL_PRIORITY_LOW:        return OBS_NAL_PRIORITY_LOW;
-	}
-
-	return OBS_NAL_PRIORITY_HIGHEST;
+	return priority;
 }
 
 static void serialize_avc_data(struct serializer *s, const uint8_t *data,