[FFmpeg-devel] [PATCH v2 4/5] avdevice/dshow: only set pin format if wanted
Diederick Niehorster
dcnieho at gmail.com
Sun Jan 2 11:49:39 EET 2022
Signed-off-by: Diederick Niehorster <dcnieho at gmail.com>
---
libavdevice/dshow.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavdevice/dshow.c b/libavdevice/dshow.c
index 4b6887881d..f2d95fa470 100644
--- a/libavdevice/dshow.c
+++ b/libavdevice/dshow.c
@@ -1046,7 +1046,7 @@ next:
// format based on the VIDEOINFOHEADER format.
// NB: this never applies to an audio format because
// previous_match_type always NULL in that case
- if (!format_set && previous_match_type) {
+ if (pformat_set && !format_set && previous_match_type) {
if (IAMStreamConfig_SetFormat(config, previous_match_type) == S_OK)
format_set = 1;
}
--
2.28.0.windows.1
More information about the ffmpeg-devel
mailing list