Clean up disabling audio in stream (#74038)

This commit is contained in:
uvjustin 2022-06-28 07:56:10 +08:00 committed by GitHub
parent e706c6a15f
commit fef21c02ee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -473,10 +473,6 @@ def stream_worker(
audio_stream = None
if audio_stream and audio_stream.name not in AUDIO_CODECS:
audio_stream = None
# These formats need aac_adtstoasc bitstream filter, but auto_bsf not
# 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