diff options
author | Diederick Niehorster <dcnieho@gmail.com> | 2022-01-02 10:49:39 +0100 |
---|---|---|
committer | Gyan Doshi <ffmpeg@gyani.pro> | 2022-01-04 17:41:00 +0530 |
commit | 25518f2aa6821cd37bb20b53853eb1b2ef95b755 (patch) | |
tree | 50354afe2e3d11c0feaac6fe2808220416d286ac /libavdevice | |
parent | 76e164f3326c3c2330f3fdd22716ca2495e7c612 (diff) | |
download | ffmpeg-25518f2aa6821cd37bb20b53853eb1b2ef95b755.tar.gz |
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.c | 2 |
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; } |