mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2026-01-23 23:21:06 +01:00
avcodec/magicyuvenc: Use more correct cast in compare function
There is no need to cast const away (even if it was harmless) and to copy the object at all. Reviewed-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
This commit is contained in:
parent
17b003a9e2
commit
32f0a000fd
1 changed files with 3 additions and 3 deletions
|
|
@ -280,9 +280,9 @@ typedef struct PackageMergerList {
|
|||
|
||||
static int compare_by_prob(const void *a, const void *b)
|
||||
{
|
||||
PTable a_val = *(PTable *)a;
|
||||
PTable b_val = *(PTable *)b;
|
||||
return a_val.prob - b_val.prob;
|
||||
const PTable *a2 = a;
|
||||
const PTable *b2 = b;
|
||||
return a2->prob - b2->prob;
|
||||
}
|
||||
|
||||
static void magy_huffman_compute_bits(PTable *prob_table, HuffEntry *distincts,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue