aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAayush Soni <aayush.soni@ittiam.com>2021-04-16 18:25:06 +0000
committerAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>2021-04-16 18:25:06 +0000
commit29b671c12b6c828e76eaca75c22a118b97b5f356 (patch)
tree366c804a48250bcc2a6abf1beabfc2ddd3300335
parent8bbc8ab63aec3080839e04716860f2303f580ac4 (diff)
parent3a4aac7376ba61321f2324b32ad2aef96adf9bee (diff)
downloadlibavc-29b671c12b6c828e76eaca75c22a118b97b5f356.tar.gz
encoder: fix null buffer dereferencing am: 3139d13ccd am: 3a4aac7376
Original change: https://android-review.googlesource.com/c/platform/external/libavc/+/1663964 Change-Id: I61881dbaabbc24871883557486d0b8c1d8b3ce1a
-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++)
{