From c439ec60f45fee88ab1e397cc74ae80fed0ff0f3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Schl=C3=BCter?= Date: Wed, 4 Sep 2019 17:36:00 +0200 Subject: [PATCH] Use binary or, not logical or to combine flags --- libmusly/decoders/libav.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libmusly/decoders/libav.cpp b/libmusly/decoders/libav.cpp index a78b904..51bb1df 100644 --- a/libmusly/decoders/libav.cpp +++ b/libmusly/decoders/libav.cpp @@ -296,7 +296,7 @@ libav::decodeto_22050hz_mono_float( // fault when trying to access frame->data[i] for i > 0 further below) if ((excerpt_start > 0) and (av_seek_frame(fmtx, audio_stream_idx, excerpt_start * st->time_base.den / st->time_base.num, - AVSEEK_FLAG_BACKWARD || AVSEEK_FLAG_ANY) >= 0)) { + AVSEEK_FLAG_BACKWARD | AVSEEK_FLAG_ANY) >= 0)) { // skipping went fine: decode only what's needed decode_samples = excerpt_length * decx->sample_rate; excerpt_start = 0;