From 3e75a1fe6dd1f90f681d0ab4518cf13ba5e82fff Mon Sep 17 00:00:00 2001 From: ChenHengming Date: Sun, 8 May 2016 16:50:29 +0000 Subject: [PATCH] [h265d]: avoid drop I slice after IDR slice git-svn-id: https://10.10.10.66:8443/svn/MediaProcessPlatform/trunk/mpp@700 6e48237b-75ef-9749-8fc9-41990f28c85a --- mpp/codec/dec/h265/h265d_parser.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mpp/codec/dec/h265/h265d_parser.c b/mpp/codec/dec/h265/h265d_parser.c index d4b6f5d2..1c22b086 100644 --- a/mpp/codec/dec/h265/h265d_parser.c +++ b/mpp/codec/dec/h265/h265d_parser.c @@ -1331,7 +1331,7 @@ static RK_S32 parser_nal_unit(HEVCContext *s, const RK_U8 *nal, int length) s->poc <= s->max_ra) { s->is_decoded = 0; break; - } else if (s->poc < s->max_ra) { //when seek to I slice skip the stream small then I slic poc + } else if ((s->poc < s->max_ra) && !IS_IRAP(s)) { //when seek to I slice skip the stream small then I slic poc s->is_decoded = 0; break; } else {