stream_input: fixed some issues on stream_input. [1/1]
PD#SWPL-26251
PD#SWPL-26296
PD#SWPL-26188
Problem:
1. Cobalt encrypted video does not play,stream is played
for many times,press CTRL +C to crash.
2. could not decode with audio only stream
3. Play PVR video,do FF,then quit FF,DUT auto stop play.
Solution:
1. psparser do not release more times.
2. the field is_phybuf can't set to wirte func.
3. should check vid and aid when the ts write.
4. the pts start before should check pid is valid.
Verify:
u212
Change-Id: I8fc4e5b176e6cd6fb2b839a2925003b59d1ca865
Signed-off-by: Nanxin Qin <nanxin.qin@amlogic.com>