mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-01-21 06:50:56 +00:00
avdevice/dshow: only set pin format if wanted
Signed-off-by: Diederick Niehorster <dcnieho@gmail.com> Reviewed-by: Roger Pack <rogerdpack2@gmail.com>
This commit is contained in:
parent
76e164f332
commit
25518f2aa6
@ -1046,7 +1046,7 @@ next:
|
|||||||
// format based on the VIDEOINFOHEADER format.
|
// format based on the VIDEOINFOHEADER format.
|
||||||
// NB: this never applies to an audio format because
|
// NB: this never applies to an audio format because
|
||||||
// previous_match_type always NULL in that case
|
// 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)
|
if (IAMStreamConfig_SetFormat(config, previous_match_type) == S_OK)
|
||||||
format_set = 1;
|
format_set = 1;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user