Disable audio in stream when audio stream profile is None (#40521)

This commit is contained in:
uvjustin 2020-09-24 20:35:52 +08:00 committed by Franck Nijhof
parent fe056f518e
commit ff39cd753c
No known key found for this signature in database
GPG Key ID: D62583BA8AB11CA3

View File

@ -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