You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-10 06:10:52 +02:00
avcodec/magicyuvenc: improve compression
Signed-off-by: Paul B Mahol <onemda@gmail.com>
This commit is contained in:
@@ -344,7 +344,7 @@ static int encode_table(AVCodecContext *avctx, uint8_t *dst,
|
|||||||
|
|
||||||
for (i = 0; i < 256; i++) {
|
for (i = 0; i < 256; i++) {
|
||||||
counts[i].prob++;
|
counts[i].prob++;
|
||||||
counts[i].value = i;
|
counts[i].value = 255 - i;
|
||||||
}
|
}
|
||||||
|
|
||||||
magy_huffman_compute_bits(counts, he, 256, 16);
|
magy_huffman_compute_bits(counts, he, 256, 16);
|
||||||
|
Reference in New Issue
Block a user