From c4ec51f43fc800f4e697a5c0678c6b400b76b152 Mon Sep 17 00:00:00 2001 From: WyattBlue Date: Fri, 6 Dec 2024 03:39:49 -0500 Subject: [PATCH] `mp3` now works with `add_stream_from_template()` --- av/container/output.pyx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/av/container/output.pyx b/av/container/output.pyx index 8fad652d4..a75e47d43 100644 --- a/av/container/output.pyx +++ b/av/container/output.pyx @@ -148,7 +148,7 @@ cdef class OutputContainer(Container): cdef const lib.AVCodec *codec cdef Codec codec_obj - if template.type == "subtitle": + if template.type != "video": codec_obj = template.codec_context.codec else: codec_obj = Codec(template.codec_context.codec.name, "w")