Skip to content

Commit 8ed963f

Browse files
committed
nvm 😭
1 parent 56afd63 commit 8ed963f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/recorder.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ std::vector<std::string> Recorder::getAvailableCodecs() {
1919
const AVCodec * codec;
2020

2121
while ((codec = av_codec_iterate(&iter))) {
22-
if(codec->type == AVMEDIA_TYPE_VIDEO)
22+
if(codec->type == AVMEDIA_TYPE_VIDEO && avcodec_find_encoder_by_name(codec->name) != nullptr)
2323
vec.push_back(codec->name);
2424
}
2525

0 commit comments

Comments
 (0)