aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDiederick Niehorster <dcnieho@gmail.com>2022-04-19 10:13:18 +0200
committerJames Almer <jamrial@gmail.com>2022-05-12 22:06:44 -0300
commitd2d8b9b972ba2df6b2a2ebe29f5307cbb7a69c33 (patch)
treefd0b85e267659d4f7fc637061b3d5bddf8e56f5d
parente71d5156c8fec67a7198a0032262036ae7d46bcd (diff)
downloadffmpeg-d2d8b9b972ba2df6b2a2ebe29f5307cbb7a69c33.tar.gz
avdevice/dshow: reuse unused variables.
Fix for f125c504d8fece6420bb97767f9e72414c26312a, requested_sample_rate and such should be used. Signed-off-by: Diederick Niehorster <dcnieho@gmail.com> Signed-off-by: James Almer <jamrial@gmail.com>
-rw-r--r--libavdevice/dshow.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libavdevice/dshow.c b/libavdevice/dshow.c
index 1e69620880..5946a72cc2 100644
--- a/libavdevice/dshow.c
+++ b/libavdevice/dshow.c
@@ -1003,9 +1003,9 @@ dshow_cycle_formats(AVFormatContext *avctx, enum dshowDeviceType devtype,
continue;
}
if (
- (ctx->sample_rate && ctx->sample_rate != fx->nSamplesPerSec) ||
- (ctx->sample_size && ctx->sample_size != fx->wBitsPerSample) ||
- (ctx->channels && ctx->channels != fx->nChannels )
+ (requested_sample_rate && requested_sample_rate != fx->nSamplesPerSec) ||
+ (requested_sample_size && requested_sample_size != fx->wBitsPerSample) ||
+ (requested_channels && requested_channels != fx->nChannels )
) {
goto next;
}