aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAayush Soni <aayush.soni@ittiam.com>2021-03-25 16:59:10 +0530
committerRay Essick <essick@google.com>2021-04-17 12:27:40 -0700
commite88c22c34cd93eef75ae473c4a35af775546b8fe (patch)
treee1afa7ffda26654bb9c190200dcdd66aa8a737f6
parentfd80f537f431f11e07f0016096b535b2f0bbd352 (diff)
downloadlibavc-e88c22c34cd93eef75ae473c4a35af775546b8fe.tar.gz
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
-rw-r--r--encoder/ih264e_utils.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/encoder/ih264e_utils.c b/encoder/ih264e_utils.c
index 2196a64..239271e 100644
--- a/encoder/ih264e_utils.c
+++ b/encoder/ih264e_utils.c
@@ -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++)
{