summaryrefslogtreecommitdiff
path: root/libavdevice/dshow.c
diff options
context:
space:
mode:
authorBrad Isbell <brad@audiopump.co>2021-11-03 20:38:59 -0500
committerMichael Niedermayer <michael@niedermayer.cc>2021-11-05 22:58:43 +0100
commit9d4989f2e17c11d4ee9daa489b6e4f5195d80b99 (patch)
treea1dd8dc0e21753fede5bec058071088615ef09cb /libavdevice/dshow.c
parentd9a9b4c877b85fea5a5bad74c3d592a756047f79 (diff)
downloadffmpeg-9d4989f2e17c11d4ee9daa489b6e4f5195d80b99.tar.gz
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@audiopump.co> Reviewed-by: Roger Pack <rogerdpack2@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavdevice/dshow.c')
-rw-r--r--libavdevice/dshow.c2
1 files changed, 1 insertions, 1 deletions
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;