diff --git a/libavformat/4xm.c b/libavformat/4xm.c index 3714297dae..87ecf9f4cf 100644 --- a/libavformat/4xm.c +++ b/libavformat/4xm.c @@ -150,7 +150,7 @@ static int parse_strk(AVFormatContext *s, if (fourxm->tracks[track].channels <= 0 || fourxm->tracks[track].sample_rate <= 0 || - fourxm->tracks[track].bits < 0) { + fourxm->tracks[track].bits <= 0) { av_log(s, AV_LOG_ERROR, "audio header invalid\n"); return AVERROR_INVALIDDATA; }