vcap/dshow: issue a warning if capturing compressed

This commit is contained in:
Martin Pulec
2024-04-09 16:27:06 +02:00
parent 235c55879a
commit d5d628ddf2

View File

@@ -985,6 +985,13 @@ static int vidcap_dshow_init(struct vidcap_params *params, void **state) {
goto error;
}
if (is_codec_opaque(s->desc.color_spec)) {
MSG(WARNING,
"Capturing a compressed format directly. You may consider "
"enforcing conversion to RGB (':RGB' option), eg. to "
"use another compression.\n");
}
#if 0
if (s->modeNumber < 0) { // mode number was not set by user directly
s->streamConfig->GetFormat(&mediaType);