summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--audio/aframe.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/audio/aframe.c b/audio/aframe.c
index 0a8ec38c93..1f053a6715 100644
--- a/audio/aframe.c
+++ b/audio/aframe.c
@@ -297,7 +297,7 @@ bool mp_aframe_set_chmap(struct mp_aframe *frame, struct mp_chmap *in)
bool mp_aframe_set_rate(struct mp_aframe *frame, int rate)
{
- if (rate < 1 && rate > 10000000)
+ if (rate < 1 || rate > 10000000)
return false;
frame->av_frame->sample_rate = rate;
return true;