diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2022-09-03 16:39:46 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2022-09-05 14:22:30 +0200 |
commit | 6b1a7fc8bd473aa4e644a64335eb93044647f96d (patch) | |
tree | 93225e5baf1c177b2fa73b85e56b18a42ace6913 /libavformat/redspark.c | |
parent | 2ed5925e26f77fc377cedcefb3864dc1a4712210 (diff) | |
download | ffmpeg-6b1a7fc8bd473aa4e644a64335eb93044647f96d.tar.gz |
avcodec/cfhd, cfhddata: Simplify check for escape
cfhd.c checked for level being equal to a certain codebook-
dependent constant and to run being two. The first check is
actually redundant, as all codebooks contain only one (real)
entry with run == 2 (as is usual with VLCs, this one real entry
has several corresponding entries in the table). But given
that no entry has a run of zero (except incomplete entries
which just signal that one needs to do another round of parsing),
one can actually use that as sentinel. This patch does so.
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavformat/redspark.c')
0 files changed, 0 insertions, 0 deletions