ffmpeg | branch: master | Brad Isbell <b...@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 <b...@audiopump.co>
Reviewed-by: Roger Pack <rogerdpa...@gmail.com>
Signed-off-by: Michael Niedermayer <mich...@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;
 

_______________________________________________
ffmpeg-cvslog mailing list
ffmpeg-cvslog@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog

To unsubscribe, visit link above, or email
ffmpeg-cvslog-requ...@ffmpeg.org with subject "unsubscribe".

Reply via email to