encoder: fix null buffer dereferencing am: 3139d13ccd am: 3a4aac7376

Original change: 1663964

Change-Id: I61881dbaabbc24871883557486d0b8c1d8b3ce1a
This commit is contained in:
Aayush Soni 2021-04-16 18:25:06 +00:00 committed by Automerger Merge Worker
commit 29b671c12b

View file

@ -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 */ /* The buffer in the queue is set to NULL to specify that encoding is done for that frame */
for(i = 0; i < 3; i++) for(i = 0; i < 3; i++)
{ {