summaryrefslogtreecommitdiff
path: root/libavdevice
diff options
context:
space:
mode:
authorDiederick Niehorster <dcnieho@gmail.com>2022-01-02 10:49:39 +0100
committerGyan Doshi <ffmpeg@gyani.pro>2022-01-04 17:41:00 +0530
commit25518f2aa6821cd37bb20b53853eb1b2ef95b755 (patch)
tree50354afe2e3d11c0feaac6fe2808220416d286ac /libavdevice
parent76e164f3326c3c2330f3fdd22716ca2495e7c612 (diff)
avdevice/dshow: only set pin format if wanted
Signed-off-by: Diederick Niehorster <dcnieho@gmail.com> Reviewed-by: Roger Pack <rogerdpack2@gmail.com>
Diffstat (limited to 'libavdevice')
-rw-r--r--libavdevice/dshow.c2
1 files changed, 1 insertions, 1 deletions
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;
}