encoder: fix null buffer dereferencing
Do not set the picture type as NA for the last frame in encoding order. Bug: 180219345 Test: POC in bug descriptions Test: atest CtsMediaV2TestCases:CodecEncoderTest Test: atest VtsHalMediaC2V1_0TargetVideoEncTest Change-Id: I57ee7db9e2e55fba2666a6aaa4002ef31276e4b9
This commit is contained in:
parent
fd80f537f4
commit
e88c22c34c
1 changed files with 0 additions and 5 deletions
|
|
@ -445,11 +445,6 @@ WORD32 ih264e_input_queue_update(codec_t *ps_codec,
|
|||
}
|
||||
}
|
||||
|
||||
if (ps_enc_buff->u4_is_last)
|
||||
{
|
||||
ps_codec->pic_type = PIC_NA;
|
||||
}
|
||||
|
||||
/* The buffer in the queue is set to NULL to specify that encoding is done for that frame */
|
||||
for(i = 0; i < 3; i++)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue