stream_input: fixed some issues on stream_input. [1/1]
authorNanxin Qin <nanxin.qin@amlogic.com>
Mon, 18 May 2020 14:20:37 +0000 (22:20 +0800)
committerHui Zhang <hui.zhang@amlogic.com>
Thu, 21 May 2020 12:26:28 +0000 (05:26 -0700)
commitc51fd5a396b8f504e247fb6671a610a448dc141e
tree72c9408fa0b76ef9ad7415d2967edc3484feeb52
parenta0ffb8c688b56bd6df67539892010d0456b25b82
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>
drivers/stream_input/amports/amstream.c
drivers/stream_input/parser/esparser.c
drivers/stream_input/parser/tsdemux.c