aframe: fix logically dead code

Detected by a well known static analyzer.
This commit is contained in:
wm4 2017-10-18 12:11:37 +02:00
parent c7824f7c9d
commit 14f01bd398
1 changed files with 1 additions and 1 deletions

View File

@ -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;