Skip to content

Commit 55bcc75

Browse files
committed
mp3 now works with add_stream_from_template()
1 parent 5c532dd commit 55bcc75

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

av/container/output.pyx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ cdef class OutputContainer(Container):
148148
cdef const lib.AVCodec *codec
149149
cdef Codec codec_obj
150150

151-
if template.type == "subtitle":
151+
if template.type != "video":
152152
codec_obj = template.codec_context.codec
153153
else:
154154
codec_obj = Codec(template.codec_context.codec.name, "w")

0 commit comments

Comments
 (0)