secure: fix drop frame when nts test [1/1]
PD#SWPL-24587
Problem:
1. when one package have more frame, some buf handle is 0
at start one package and lastest buf is valid, so when
get freed handle often get invalid duo to apk do not have
input buf enough and drop frame
2. next pts often is 0, duo to video check parten error
Solution:
1. get freed handle only retrun no-zero handle
2. if next pts is 0, use current pts add duration
Verify:
verify on TM2.
Change-Id: I4f9f0b30e66621bce76a66d093a2d5334583020f
Signed-off-by: Jian Wang <jian.wang@amlogic.com>