Decoder: Fixed DoS in header decode when no PPS is present

When the input does not contain PPS and decoder is in header decode
mode, decoder was entering an infinite loop.

Bug: 33621215
(cherry picked from commit 33e1b190d6db09bd72a9f0f51acef4b14eabd6ff)
This commit is contained in:
Harish Mahendrakar 2017-01-16 11:26:26 +05:30 committed by Wei Jia
parent 9c2c615c92
commit 2cd2f7a335

View file

@ -3035,6 +3035,7 @@ WORD32 ih264d_video_decode(iv_obj_t *dec_hdl, void *pv_api_ip, void *pv_api_op)
{
/* a start code has already been found earlier in the same process call*/
frame_data_left = 0;
header_data_left = 0;
continue;
}