aboutsummaryrefslogtreecommitdiffstats
path: root/tests/ref/fate/mov-neg-firstpts-discard
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2024-06-15 18:44:18 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2024-06-20 18:58:39 +0200
commit3a5202d026c3ec2591b0a8bdff6ac7d09b8a9c1e (patch)
tree81f3c7cf5a533b445ee6b17d6cd4af61ba63f1c5 /tests/ref/fate/mov-neg-firstpts-discard
parentf3829cc72d74f41e0eb82bf968315de2b119a8a3 (diff)
downloadffmpeg-3a5202d026c3ec2591b0a8bdff6ac7d09b8a9c1e.tar.gz
avcodec/h261enc: Fix ac_vlc_length tables
These tables are supposed to contain the number of bits needed to encode a given (run, level) pair. Yet the number of bits for pairs needing the escape code was wrong (it only contained the escape code and not the bits needed for run and level). Furthermore, H.261 (a format with explicit end-of-block codes) does not work well together with the RLTable API from rl.c: The EOB code is the first one in ff_h261_rl_tcoeff's VLC table and has a run value of zero. Therefore the result of get_rl_index() is off by one for run == 0 and level values with explicit (run, level) pair. Fixing this necessitated changing the ref files of the vsynth*-h261-trellis tests. Both filesizes as well as PSNR decreased. If one used a qscale value of 11 for this test, one would have received files with about the same size as before this patch (with qscale 12), but with better PSNR. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'tests/ref/fate/mov-neg-firstpts-discard')
0 files changed, 0 insertions, 0 deletions