diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 45de1e218..4a30385f9 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -24,6 +24,7 @@ Fixes: - Include header files in source distribution by :gh-user:`hmaarrfk` in (:pr:`1662`). - Cleanup ``AVStream.side_data`` leftovers by :gh-user:`lgeiger` in (:pr:`1674`). - Address :issue:`1663` by :gh-user:`WyattBlue`. +- Make ``mp3`` work with ``OutputContainer.add_stream_from_template()``. v14.0.0 ------- 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")