Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 14f8f695 authored by Chinmay Sawarkar's avatar Chinmay Sawarkar
Browse files

msm: vidc: Increase min input buffer count by 2



This smoothens the buffer flow and takes care of random
frame drops due to jitter.

CRs-Fixed: 2478892
Change-Id: I27ecb686e3982152b18f3a2fc207ecf59f928dff
Signed-off-by: default avatarChinmay Sawarkar <chinmays@codeaurora.org>
parent c0141cd4
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -624,6 +624,9 @@ int msm_vidc_calculate_input_buffer_count(struct msm_vidc_inst *inst)
	 * Update input buff counts
	 * Extradata uses same count as input port
	 */
	if (is_decode_session(inst) && !is_secure_session(inst))
		input_min_count += 2;

	extra_buff_count = msm_vidc_get_extra_buff_count(inst,
				HAL_BUFFER_INPUT);
	fmt->count_min = input_min_count;