]> git.sesse.net Git - ffmpeg/commit
avcodec/asvdec: Avoid reversing input data twice
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Mon, 12 Oct 2020 10:38:59 +0000 (12:38 +0200)
committerAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Sun, 18 Oct 2020 12:46:28 +0000 (14:46 +0200)
commitcdf7619705611983724e98dee2c5659449fd0e30
tree5a468b2448f5cce55883cadbc73c8f2d036e6856
parent62073cfa97d1b7f964b74130ddc92de8f9087d1f
avcodec/asvdec: Avoid reversing input data twice

Up until now the ASV2 decoder used an ordinary big-endian bitreader to
read data actually destined for a little-endian bitreader; this is done
by reversing the whole input packet bitwise, using the big-endian
bigreader and reversing (and shifting) the result again. This commit
stops this and instead uses a little-endian bitreader directly.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
libavcodec/asvdec.c