ffmpeg | branch: master | Jun Zhao <[email protected]> | Sat Jul 7 13:40:47 2018 +0800| [d746a2e3cf5cfca91b444e811cbd9bf31e0d1342] | committer: 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: Jun Zhao <[email protected]> > http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=d746a2e3cf5cfca91b444e811cbd9bf31e0d1342 --- libavcodec/hevc_ps.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; _______________________________________________ ffmpeg-cvslog mailing list [email protected] http://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog
