ffmpeg | branch: master | Diederick Niehorster <[email protected]> | Sun Jan 2 10:49:39 2022 +0100| [25518f2aa6821cd37bb20b53853eb1b2ef95b755] | committer: Gyan Doshi
avdevice/dshow: only set pin format if wanted Signed-off-by: Diederick Niehorster <[email protected]> Reviewed-by: Roger Pack <[email protected]> > http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=25518f2aa6821cd37bb20b53853eb1b2ef95b755 --- libavdevice/dshow.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } _______________________________________________ ffmpeg-cvslog mailing list [email protected] https://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog To unsubscribe, visit link above, or email [email protected] with subject "unsubscribe".
