plugin: Don't add audio encoders
This is a temporary workaround until OBS supports selecting audio format for each stream.
This commit is contained in:
+2
-2
@@ -106,8 +106,8 @@ try {
|
|||||||
if (!av_codec_is_encoder(cdc))
|
if (!av_codec_is_encoder(cdc))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
if ((cdc->type == AVMediaType::AVMEDIA_TYPE_AUDIO)
|
if (/*(cdc->type == AVMediaType::AVMEDIA_TYPE_AUDIO)
|
||||||
|| (cdc->type == AVMediaType::AVMEDIA_TYPE_VIDEO)) {
|
|| */(cdc->type == AVMediaType::AVMEDIA_TYPE_VIDEO)) {
|
||||||
auto ptr = std::make_shared<obsffmpeg::encoder_factory>(cdc);
|
auto ptr = std::make_shared<obsffmpeg::encoder_factory>(cdc);
|
||||||
ptr->register_encoder();
|
ptr->register_encoder();
|
||||||
generic_factories.emplace(cdc, ptr);
|
generic_factories.emplace(cdc, ptr);
|
||||||
|
|||||||
Reference in New Issue
Block a user