mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 11:17:21 +00:00
Disable audio in stream when audio stream profile is None (#40521)
This commit is contained in:
parent
ebe3b5bfff
commit
8e0bb92c79
@ -77,6 +77,9 @@ def _stream_worker_internal(hass, stream, quit_event):
|
||||
# compatible with empty_moov and manual bitstream filters not in PyAV
|
||||
if container.format.name in {"hls", "mpegts"}:
|
||||
audio_stream = None
|
||||
# Some audio streams do not have a profile and throw errors when remuxing
|
||||
if audio_stream and audio_stream.profile is None:
|
||||
audio_stream = None
|
||||
|
||||
# The presentation timestamps of the first packet in each stream we receive
|
||||
# Use to adjust before muxing or outputting, but we don't adjust internally
|
||||
|
Loading…
x
Reference in New Issue
Block a user