]> git.sesse.net Git - ffmpeg/commit
avcodec/cavsdec, h264*, hevc_parser: Use get_ue_golomb_31 where possible
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Tue, 14 Jul 2020 13:20:09 +0000 (15:20 +0200)
committerAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Wed, 29 Jul 2020 03:11:54 +0000 (05:11 +0200)
commitcbb6ba2e86923349ff9c5602976bb02ffa9d3fff
treee5bee7cbe6e680cec6c9b4c29ce5feb99db4bcbe
parent2d5407d390728d4d4a4d8f36a8fe69ff490f54e4
avcodec/cavsdec, h264*, hevc_parser: Use get_ue_golomb_31 where possible

instead of get_ue_golomb(). The difference between the two is that the
latter also has to take into account the case in which the read code is
more than 9 bits (four preceding zeroes + at most five value bits) long,
leading to more code.

Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
libavcodec/cavsdec.c
libavcodec/h264_parse.c
libavcodec/h264_ps.c
libavcodec/hevc_parser.c