mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2025-11-02 13:24:20 +08:00
avcodec/hevcdec: remove HEVCContext usage from ff_hevc_compute_poc()
Move it to hevc_ps as well. This is in preparation for a following patch. Reviewed-by: Hendrik Leppkes <h.leppkes@gmail.com> Reviewed-by: Aaron Levinson <alevinsn@aracnet.com> Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
@@ -541,7 +541,7 @@ static int hls_slice_header(HEVCContext *s)
|
||||
int poc, pos;
|
||||
|
||||
sh->pic_order_cnt_lsb = get_bits(gb, s->ps.sps->log2_max_poc_lsb);
|
||||
poc = ff_hevc_compute_poc(s, sh->pic_order_cnt_lsb);
|
||||
poc = ff_hevc_compute_poc(s->ps.sps, s->pocTid0, sh->pic_order_cnt_lsb, s->nal_unit_type);
|
||||
if (!sh->first_slice_in_pic_flag && poc != s->poc) {
|
||||
av_log(s->avctx, AV_LOG_WARNING,
|
||||
"Ignoring POC change between slices: %d -> %d\n", s->poc, poc);
|
||||
|
||||
Reference in New Issue
Block a user