[FFmpeg-cvslog] avdevice/dshow: Fix missing PCM sample size option when it is used as the lone option for DirectShow audio capture

Brad Isbell git at videolan.org
Fri Nov 5 23:59:23 EET 2021


ffmpeg | branch: master | Brad Isbell <brad at audiopump.co> | Wed Nov  3 20:38:59 2021 -0500| [9d4989f2e17c11d4ee9daa489b6e4f5195d80b99] | committer: Michael Niedermayer

avdevice/dshow: Fix missing PCM sample size option when it is used as the lone option for DirectShow audio capture

Signed-off-by: Brad Isbell <brad at audiopump.co>
Reviewed-by: Roger Pack <rogerdpack2 at gmail.com>
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=9d4989f2e17c11d4ee9daa489b6e4f5195d80b99
---

 libavdevice/dshow.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavdevice/dshow.c b/libavdevice/dshow.c
index 5c1e4941f3..e313c9a2bf 100644
--- a/libavdevice/dshow.c
+++ b/libavdevice/dshow.c
@@ -569,7 +569,7 @@ dshow_cycle_pins(AVFormatContext *avctx, enum dshowDeviceType devtype,
                                                 (ctx->requested_width && ctx->requested_height) ||
                                                  ctx->pixel_format != AV_PIX_FMT_NONE ||
                                                  ctx->video_codec_id != AV_CODEC_ID_RAWVIDEO))
-                  || (devtype == AudioDevice && (ctx->channels || ctx->sample_rate));
+                  || (devtype == AudioDevice && (ctx->channels || ctx->sample_rate || ctx->sample_size));
     int format_set = 0;
     int should_show_properties = (devtype == VideoDevice) ? ctx->show_video_device_dialog : ctx->show_audio_device_dialog;
 



More information about the ffmpeg-cvslog mailing list