Commit d746a2e3 authored by Jun Zhao's avatar Jun Zhao Committed by Jun Zhao

lavc/hevc_ps: use skip_bits instead of get_bits when skip bits.

use skip_bits when want to skip some bits.
Signed-off-by: 's avatarJun Zhao <mypopydev@gmail.com>
parent 896854b2
......@@ -1679,7 +1679,7 @@ int ff_hevc_decode_nal_pps(GetBitContext *gb, AVCodecContext *avctx,
if (get_bits1(gb)) { // pps_extension_present_flag
int pps_range_extensions_flag = get_bits1(gb);
/* int pps_extension_7bits = */ get_bits(gb, 7);
skip_bits(gb, 7); // pps_extension_7bits
if (sps->ptl.general_ptl.profile_idc == FF_PROFILE_HEVC_REXT && pps_range_extensions_flag) {
if ((ret = pps_range_extensions(gb, avctx, pps, sps)) < 0)
goto err;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment