Reduce the latecy of encoding 1st frame am: 45d8059519 am: 30ceaa9a7f

Change-Id: Ieb4094eab2ae8c17905f81839ba2a69dc06197b9