diff options
author | Andreas Rheinhardt <andreas.rheinhardt@gmail.com> | 2020-10-13 03:11:37 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@gmail.com> | 2020-10-18 15:29:34 +0200 |
commit | 746ab8327c0c8ae1b7e894f3c21d7b7a44c0a0b3 (patch) | |
tree | cccc90794568d57c91007212c5f61f5cde257351 /libavcodec/asv.h | |
parent | c9e8f031955ffc00d681bd31e6ad3c8146cf015d (diff) | |
download | ffmpeg-746ab8327c0c8ae1b7e894f3c21d7b7a44c0a0b3.tar.gz |
avcodec/asvenc: Avoid reversing output data twice
The ASUS V2 format is designed for a little-endian bitstream reader, yet
our encoder used an ordinary big-endian bitstream writer to write it;
the bits of every byte were swapped at the end and some data (namely the
numbers not in static tables) had to be bitreversed before writing it at
all, so that it would be reversed twice.
This commit stops doing so; instead, a little-endian bitstream writer is
used. This also necessitated to switch certain static tables, which
required trivial modifications to the decoder (that uses the same
tables).
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Diffstat (limited to 'libavcodec/asv.h')
-rw-r--r-- | libavcodec/asv.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/asv.h b/libavcodec/asv.h index a1366b6fe4..e778c72d34 100644 --- a/libavcodec/asv.h +++ b/libavcodec/asv.h @@ -66,7 +66,7 @@ extern const uint8_t ff_asv_ccp_tab[17][2]; extern const uint8_t ff_asv_level_tab[7][2]; extern const uint8_t ff_asv_dc_ccp_tab[8][2]; extern const uint8_t ff_asv_ac_ccp_tab[16][2]; -extern const uint8_t ff_asv2_level_tab[63][2]; +extern const uint16_t ff_asv2_level_tab[63][2]; void ff_asv_common_init(AVCodecContext *avctx); |