avcodec/magicyuvenc: improve compression

Signed-off-by: Paul B Mahol <onemda@gmail.com>
This commit is contained in:
Paul B Mahol 2017-10-29 12:13:54 +01:00
parent 7da254886f
commit ca106d6a5c
1 changed files with 1 additions and 1 deletions

View File

@ -344,7 +344,7 @@ static int encode_table(AVCodecContext *avctx, uint8_t *dst,
for (i = 0; i < 256; i++) {
counts[i].prob++;
counts[i].value = i;
counts[i].value = 255 - i;
}
magy_huffman_compute_bits(counts, he, 256, 16);