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

This commit is contained in:
uvjustin authored and Franck Nijhof committed 2020-09-25 09:27:22 +02:00
1 parent fe056f518e
commit ff39cd753c
1 file changed
+3
@@ -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