]> git.sesse.net Git - ffmpeg/commit
avcodec/bitstream: Stop allocating one VLCcode more than needed
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Sat, 24 Oct 2020 12:23:38 +0000 (14:23 +0200)
committerAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Wed, 28 Oct 2020 10:28:24 +0000 (11:28 +0100)
commit81d4b8fb3cdc234d2961b23890aa02d4d29e8842
treec2f42ee2cf5e586570340bedfce9013ac2f1e84a
parente75b6ec43b63c5ba5ca2202ffd06df4d5a018e4a
avcodec/bitstream: Stop allocating one VLCcode more than needed

Allocating one temporary entry more than needed was made necessary by
the COPY loop below writing an element before having checked that it
should be written at all. But given that this behaviour changed, the
need for overallocating is gone.

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