aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/magicyuvenc.c
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2017-10-29 12:13:54 +0100
committerPaul B Mahol <onemda@gmail.com>2017-10-29 12:15:24 +0100
commitca106d6a5c4c62516876222745e16bafcc774d06 (patch)
treea48d6cadb8fd8d4e3cdd990714ac5f6ee74e9ee6 /libavcodec/magicyuvenc.c
parent7da254886fbf39dc1bde9b3776f8cfbfcc471a7e (diff)
downloadffmpeg-ca106d6a5c4c62516876222745e16bafcc774d06.tar.gz
avcodec/magicyuvenc: improve compression
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Diffstat (limited to 'libavcodec/magicyuvenc.c')
-rw-r--r--libavcodec/magicyuvenc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/magicyuvenc.c b/libavcodec/magicyuvenc.c
index f948b03e4b..a30922f570 100644
--- a/libavcodec/magicyuvenc.c
+++ b/libavcodec/magicyuvenc.c
@@ -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);