[FFmpeg-cvslog] lavc/hevcdec: Initialize missed parameters in slice header for IDR frame
Fei Wang
git at videolan.org
Mon Mar 27 17:33:38 EEST 2023
ffmpeg | branch: master | Fei Wang <fei.w.wang at intel.com> | Mon Mar 27 13:26:27 2023 +0800| [9026f446d64b5d64fc3a281c86f8f02b8401cbaf] | committer: J. Dekker
lavc/hevcdec: Initialize missed parameters in slice header for IDR frame
Signed-off-by: Fei Wang <fei.w.wang at intel.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=9026f446d64b5d64fc3a281c86f8f02b8401cbaf
---
libavcodec/hevcdec.c | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
diff --git a/libavcodec/hevcdec.c b/libavcodec/hevcdec.c
index 121ceb4e75..1a0beac901 100644
--- a/libavcodec/hevcdec.c
+++ b/libavcodec/hevcdec.c
@@ -732,8 +732,13 @@ static int hls_slice_header(HEVCContext *s)
else
sh->slice_temporal_mvp_enabled_flag = 0;
} else {
- s->sh.short_term_rps = NULL;
- s->poc = 0;
+ s->poc = 0;
+ sh->pic_order_cnt_lsb = 0;
+ sh->short_term_ref_pic_set_sps_flag = 0;
+ sh->short_term_ref_pic_set_size = 0;
+ sh->short_term_rps = NULL;
+ sh->long_term_ref_pic_set_size = 0;
+ sh->slice_temporal_mvp_enabled_flag = 0;
}
/* 8.3.1 */
More information about the ffmpeg-cvslog
mailing list