diff options
author | Jun Zhao <mypopydev@gmail.com> | 2018-07-07 13:40:47 +0800 |
---|---|---|
committer | Jun Zhao <jun.zhao@intel.com> | 2018-07-13 20:18:40 +0800 |
commit | d746a2e3cf5cfca91b444e811cbd9bf31e0d1342 (patch) | |
tree | 2ab1b3b1fefbf68ae54109b7ee81ce31fa1abf98 | |
parent | 896854b2336f160b58fb36b33d7b586ffc467715 (diff) | |
download | ffmpeg-d746a2e3cf5cfca91b444e811cbd9bf31e0d1342.tar.gz |
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: Jun Zhao <mypopydev@gmail.com>
-rw-r--r-- | libavcodec/hevc_ps.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/hevc_ps.c b/libavcodec/hevc_ps.c index bc5406b58e..fbd9fbfd09 100644 --- a/libavcodec/hevc_ps.c +++ b/libavcodec/hevc_ps.c @@ -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; |