test pc 3 年之前
父节点
当前提交
222904ea15
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      src/scene/scene.service.ts

+ 2 - 2
src/scene/scene.service.ts

@@ -662,8 +662,8 @@ export class SceneService implements OnModuleInit, OnModuleDestroy {
           for (let i = 0; i <= walkingRes.length - 1; i++) {
             Array.from(walkingRes[i]).forEach(
               (item: StreamReplyType, index: number) => {
-                const IDRflag = index % 5 === 0 ? 1 : 3;
-                //const IDRflag = item.isIDR ? 1 : 3;
+                //const IDRflag = index % 5 === 0 ? 1 : 3;
+                const IDRflag = item.isIDR ? 1 : 3;
                 const dir = this.isHeaderOrLast(
                   index,
                   walkingRes[i].length - 1,