[FFmpeg-cvslog] avcodec/magicyuvenc: improve compression
Paul B Mahol
git at videolan.org
Sun Oct 29 13:16:21 EET 2017
ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Sun Oct 29 12:13:54 2017 +0100| [ca106d6a5c4c62516876222745e16bafcc774d06] | committer: Paul B Mahol
avcodec/magicyuvenc: improve compression
Signed-off-by: Paul B Mahol <onemda at gmail.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=ca106d6a5c4c62516876222745e16bafcc774d06
---
libavcodec/magicyuvenc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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);
More information about the ffmpeg-cvslog
mailing list