diff options
author | android-build-prod (mdb) <android-build-team-robot@google.com> | 2018-04-10 23:02:45 +0000 |
---|---|---|
committer | android-build-prod (mdb) <android-build-team-robot@google.com> | 2018-04-10 23:02:45 +0000 |
commit | 4701e9d493795ac71ac28f63bc1b8170cd4848ae (patch) | |
tree | c1e3211db85c6ea1f57035a85672a07bdff40483 | |
parent | 22e104be79d70cadc831f01e9ab32c468256da92 (diff) | |
parent | d799ef24822d83c849e62e3313298c4a74fece81 (diff) | |
download | libhevc-android-vts-8.1_r14.tar.gz |
Snap for 4711598 from d799ef24822d83c849e62e3313298c4a74fece81 to oreo-mr1-vts-releaseandroid-vts-8.1_r9android-vts-8.1_r8android-vts-8.1_r7android-vts-8.1_r6android-vts-8.1_r5android-vts-8.1_r4android-vts-8.1_r14android-vts-8.1_r13android-vts-8.1_r12android-vts-8.1_r11android-vts-8.1_r10oreo-mr1-vts-release
Change-Id: Ie0a944ef98526a5a0fdc6d1a1d8fe7ed8054e047
-rw-r--r-- | decoder/ihevcd_parse_headers.c | 2 | ||||
-rwxr-xr-x | decoder/ihevcd_utils.c | 3 |
2 files changed, 5 insertions, 0 deletions
diff --git a/decoder/ihevcd_parse_headers.c b/decoder/ihevcd_parse_headers.c index a8daa3c..b8ed252 100644 --- a/decoder/ihevcd_parse_headers.c +++ b/decoder/ihevcd_parse_headers.c @@ -1402,6 +1402,8 @@ IHEVCD_ERROR_T ihevcd_parse_sps(codec_t *ps_codec) return IHEVCD_UNSUPPORTED_BIT_DEPTH; UEV_PARSE("log2_max_pic_order_cnt_lsb_minus4", value, ps_bitstrm); + if(value < 0 || value > 12) + return IHEVCD_INVALID_PARAMETER; ps_sps->i1_log2_max_pic_order_cnt_lsb = value + 4; BITS_PARSE("sps_sub_layer_ordering_info_present_flag", value, ps_bitstrm, 1); diff --git a/decoder/ihevcd_utils.c b/decoder/ihevcd_utils.c index 5e27885..fef3f74 100755 --- a/decoder/ihevcd_utils.c +++ b/decoder/ihevcd_utils.c @@ -736,6 +736,9 @@ IHEVCD_ERROR_T ihevcd_check_out_buf_size(codec_t *ps_codec) return (IHEVCD_ERROR_T)IHEVCD_SUCCESS; } + if(ps_codec->i4_disp_strd > (WORD32)wd) + wd = ps_codec->i4_disp_strd; + if(ps_codec->e_chroma_fmt == IV_YUV_420P) u4_min_num_out_bufs = MIN_OUT_BUFS_420; else if(ps_codec->e_chroma_fmt == IV_YUV_422ILE) |