summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXu Guangxin <guangxin.xu@intel.com>2022-07-15 13:06:44 +0800
committerHaihao Xiang <haihao.xiang@intel.com>2022-07-27 10:54:38 +0800
commit81ebf40efa47b7d11be060c551411dd5efd11a05 (patch)
tree9b2222dd94f4ad3b3e33a08ab881c3b9991f15c0
parent2191f9a6affadb530cd3e96f543cfdb175092a85 (diff)
lavc/hevcdec: respect the value of no_output_of_prior_pics_flag
Even resolution or number of picture stores changes, we still need follow no_output_of_prior_pics_flag in next IDR. Tested-by: Fei Wang <fei.w.wang@intel.com> Signed-off-by: Xu Guangxin <guangxin.xu@intel.com>
-rw-r--r--libavcodec/hevcdec.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/libavcodec/hevcdec.c b/libavcodec/hevcdec.c
index 1dc8c7b4c7..dbc77ade2a 100644
--- a/libavcodec/hevcdec.c
+++ b/libavcodec/hevcdec.c
@@ -595,15 +595,8 @@ static int hls_slice_header(HEVCContext *s)
if (s->ps.sps != (HEVCSPS*)s->ps.sps_list[s->ps.pps->sps_id]->data) {
const HEVCSPS *sps = (HEVCSPS*)s->ps.sps_list[s->ps.pps->sps_id]->data;
- const HEVCSPS *last_sps = s->ps.sps;
enum AVPixelFormat pix_fmt;
- if (last_sps && IS_IRAP(s) && s->nal_unit_type != HEVC_NAL_CRA_NUT) {
- if (sps->width != last_sps->width || sps->height != last_sps->height ||
- sps->temporal_layer[sps->max_sub_layers - 1].max_dec_pic_buffering !=
- last_sps->temporal_layer[last_sps->max_sub_layers - 1].max_dec_pic_buffering)
- sh->no_output_of_prior_pics_flag = 0;
- }
ff_hevc_clear_refs(s);
ret = set_sps(s, sps, sps->pix_fmt);