From 056e988115a311673dc389923cef64176a008a01 Mon Sep 17 00:00:00 2001 From: Ray Essick Date: Wed, 18 Oct 2017 10:11:16 -0700 Subject: [PATCH] DO NOT MERGE Consume bytes for sps with unsupported resolution For an sps with unsupported resolution, consume the bytes. Otherwise application will feed the same sps again and again. Bug: 65718319 Test: ran POC before/after Change-Id: Ic81990030f7e6afd8cf3ebd387c5be7443b148b9 Merged-In: I02295e813f37a963d7f6216bb8a7e86648485681 --- decoder/ihevcd_decode.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/decoder/ihevcd_decode.c b/decoder/ihevcd_decode.c index c8915be..b21df91 100644 --- a/decoder/ihevcd_decode.c +++ b/decoder/ihevcd_decode.c @@ -612,8 +612,7 @@ WORD32 ihevcd_decode(iv_obj_t *ps_codec_obj, void *pv_api_ip, void *pv_api_op) continue; } - if((IVD_RES_CHANGED == ret) || - (IHEVCD_UNSUPPORTED_DIMENSIONS == ret)) + if(IVD_RES_CHANGED == ret) { break; }