]> git.sesse.net Git - ffmpeg/commit
avcodec/indeo2: Remove #ifdef BITSTREAM_READER_LE cruft
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Mon, 12 Oct 2020 01:49:05 +0000 (03:49 +0200)
committerAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Mon, 12 Oct 2020 20:06:28 +0000 (22:06 +0200)
commit57eee75c3fd075e555df122f1abc45ca636a2726
tree0dad19be0e6f3b59b27915851a8d368ee3c69e54
parentb9727870ae26eadbaa443828d856f33c79938579
avcodec/indeo2: Remove #ifdef BITSTREAM_READER_LE cruft

Before the LE bitstream reader was used in the Indeo 2 decoder,
a standard BE bitstream reader with swapped bits was used; when the LE
bitstream reader was added, the old code was only #ifdef'ed away and not
removed. Said code has several problems: It modifies the input packet
without ensuring that the packet is indeed writable; and it doesn't work
since 09c4e5c5988c0037d108c5fc2a137d9ad488f7f4 because said commit
removed the BE table used to initialize the VLC table. So just remove
this cruft from the actual decoder, too.

Also use INIT_LE_VLC_STATIC while at it.

Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
libavcodec/indeo2.c