fix invalid error message with option -vs 0

This commit is contained in:
F. Duncanh
2026-01-21 18:03:03 -05:00
parent 8918beeeae
commit 1bd37fd5c8

View File

@@ -2117,6 +2117,9 @@ extern "C" void video_reset(void *cls, reset_type_t type) {
extern "C" int video_set_codec(void *cls, video_codec_t codec) {
bool video_is_h265 = (codec == VIDEO_CODEC_H265);
if (!use_video) {
return 0;
}
return video_renderer_choose_codec(false, video_is_h265);
}