From 8da8eed71a31de4d60ccc50fb4f22a69d1ad2f33 Mon Sep 17 00:00:00 2001 From: Koushik Dutta Date: Wed, 18 May 2022 18:42:14 -0700 Subject: [PATCH] homekit: Fix nre --- plugins/homekit/package-lock.json | 4 ++-- plugins/homekit/package.json | 2 +- plugins/homekit/src/types/camera/camera-streaming-ffmpeg.ts | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/plugins/homekit/package-lock.json b/plugins/homekit/package-lock.json index 3ac2378e0..6ef93d06a 100644 --- a/plugins/homekit/package-lock.json +++ b/plugins/homekit/package-lock.json @@ -1,12 +1,12 @@ { "name": "@scrypted/homekit", - "version": "1.0.4", + "version": "1.0.5", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@scrypted/homekit", - "version": "1.0.4", + "version": "1.0.5", "dependencies": { "@koush/qrcode-terminal": "^0.12.0", "@koush/werift-src": "file:../../external/werift", diff --git a/plugins/homekit/package.json b/plugins/homekit/package.json index 5522b1df5..5c7bcaaad 100644 --- a/plugins/homekit/package.json +++ b/plugins/homekit/package.json @@ -1,6 +1,6 @@ { "name": "@scrypted/homekit", - "version": "1.0.4", + "version": "1.0.5", "description": "HomeKit Plugin for Scrypted", "scripts": { "prepublishOnly": "NODE_ENV=production scrypted-webpack", diff --git a/plugins/homekit/src/types/camera/camera-streaming-ffmpeg.ts b/plugins/homekit/src/types/camera/camera-streaming-ffmpeg.ts index 80283f174..b682974f4 100644 --- a/plugins/homekit/src/types/camera/camera-streaming-ffmpeg.ts +++ b/plugins/homekit/src/types/camera/camera-streaming-ffmpeg.ts @@ -169,7 +169,7 @@ export async function startCameraStreamFfmpeg(device: ScryptedDevice & VideoCame tool: mso?.tool, rtpSender, }); - const h264Info = ffmpegInput.mediaStreamOptions?.video?.h264Info; + const h264Info = ffmpegInput.mediaStreamOptions?.video?.h264Info || {}; const oddity = h264Info.fuab || h264Info.stapb || h264Info.mtap16 || h264Info.mtap32 || h264Info.sei; if (rtpSender === 'Default' && oddity) { console.warn('H264 oddities are reported in the stream. Using FFmpeg.');