浏览代码

obs-outputs: Use correct variable for drop priority

There are two variables used for 'priority', the general marked frame
priority, and the drop priority.  They can sometimes be different
because some encoders don't always use the correct frame priority.
jp9000 9 年之前
父节点
当前提交
c5706d726b
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      plugins/obs-outputs/rtmp-stream.c

+ 1 - 1
plugins/obs-outputs/rtmp-stream.c

@@ -905,7 +905,7 @@ static bool add_video_packet(struct rtmp_stream *stream,
 
 	/* if currently dropping frames, drop packets until it reaches the
 	 * desired priority */
-	if (packet->priority < stream->min_priority) {
+	if (packet->drop_priority < stream->min_priority) {
 		stream->dropped_frames++;
 		return false;
 	} else {