mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-21 10:55:51 +02: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.
|
||||
// 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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user