summaryrefslogtreecommitdiff
path: root/libavcodec/mlpenc.c
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2021-09-05 00:27:27 +0200
committerPaul B Mahol <onemda@gmail.com>2021-09-05 00:28:40 +0200
commit589cd58c858bb6b5c03cfcdb55cb8aa8acedefd7 (patch)
treef3bb4c3b3ad6e216d25f4d02676fe379f01975a3 /libavcodec/mlpenc.c
parent5b28a5db033b3bb9f476b859791c5a8df039a61b (diff)
downloadffmpeg-589cd58c858bb6b5c03cfcdb55cb8aa8acedefd7.tar.gz
avcodec/mlpenc: simplify compare_best_offset()
Diffstat (limited to 'libavcodec/mlpenc.c')
-rw-r--r--libavcodec/mlpenc.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/libavcodec/mlpenc.c b/libavcodec/mlpenc.c
index dd5c69c250..50662de09c 100644
--- a/libavcodec/mlpenc.c
+++ b/libavcodec/mlpenc.c
@@ -1939,10 +1939,7 @@ static void clear_path_counter(PathCounter *path_counter)
static int compare_best_offset(const BestOffset *prev, const BestOffset *cur)
{
- if (prev->lsb_bits != cur->lsb_bits)
- return 1;
-
- return 0;
+ return prev->lsb_bits != cur->lsb_bits;
}
static int best_codebook_path_cost(MLPEncodeContext *ctx, unsigned int channel,