mirror of https://git.ffmpeg.org/ffmpeg.git
avcodec/mlpenc: simplify compare_best_offset()
This commit is contained in:
parent
5b28a5db03
commit
589cd58c85
|
@ -1939,10 +1939,7 @@ static void clear_path_counter(PathCounter *path_counter)
|
||||||
|
|
||||||
static int compare_best_offset(const BestOffset *prev, const BestOffset *cur)
|
static int compare_best_offset(const BestOffset *prev, const BestOffset *cur)
|
||||||
{
|
{
|
||||||
if (prev->lsb_bits != cur->lsb_bits)
|
return prev->lsb_bits != cur->lsb_bits;
|
||||||
return 1;
|
|
||||||
|
|
||||||
return 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static int best_codebook_path_cost(MLPEncodeContext *ctx, unsigned int channel,
|
static int best_codebook_path_cost(MLPEncodeContext *ctx, unsigned int channel,
|
||||||
|
|
Loading…
Reference in New Issue