plugin: Use av_codec_is_encoder instead of custom check

This commit is contained in:
Michael Fabian 'Xaymar' Dirks
2019-07-07 00:32:21 +02:00
parent 042c934516
commit 16015f180b
+1 -1
View File
@@ -41,7 +41,7 @@ MODULE_EXPORT bool obs_module_load(void)
// Register all codecs.
AVCodec* cdc = nullptr;
while ((cdc = av_codec_next(cdc)) != nullptr) {
if ((!cdc->encode2) && (!cdc->send_frame))
if (!av_codec_is_encoder(cdc))
continue;
if ((cdc->type == AVMediaType::AVMEDIA_TYPE_AUDIO)