mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-13 08:07:32 -04:00
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: Chinmay Sawarkar <chinmays@codeaurora.org>
This commit is contained in:
parent
c0141cd493
commit
14f8f69554
1 changed files with 3 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue