summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2017-10-18 12:11:37 +0200
committerwm4 <wm4@nowhere>2017-10-18 12:11:37 +0200
commit14f01bd39866b9d704c7ea69f6b4c45e1350a843 (patch)
tree79fd3426ef642f06ba987ee817a3cfb6bc2b4f7c
parentc7824f7c9d67e916d3a3034405e79b37d60748f3 (diff)
downloadmpv-14f01bd39866b9d704c7ea69f6b4c45e1350a843.tar.bz2
mpv-14f01bd39866b9d704c7ea69f6b4c45e1350a843.tar.xz
aframe: fix logically dead code
Detected by a well known static analyzer.
-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;