mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-03-28 12:32:17 +02:00
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>
This commit is contained in:
parent
d9a9b4c877
commit
9d4989f2e1
@ -569,7 +569,7 @@ dshow_cycle_pins(AVFormatContext *avctx, enum dshowDeviceType devtype,
|
|||||||
(ctx->requested_width && ctx->requested_height) ||
|
(ctx->requested_width && ctx->requested_height) ||
|
||||||
ctx->pixel_format != AV_PIX_FMT_NONE ||
|
ctx->pixel_format != AV_PIX_FMT_NONE ||
|
||||||
ctx->video_codec_id != AV_CODEC_ID_RAWVIDEO))
|
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 format_set = 0;
|
||||||
int should_show_properties = (devtype == VideoDevice) ? ctx->show_video_device_dialog : ctx->show_audio_device_dialog;
|
int should_show_properties = (devtype == VideoDevice) ? ctx->show_video_device_dialog : ctx->show_audio_device_dialog;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user