mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2026-01-23 23:21:06 +01: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
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue