mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-10 12:57:06 +09:00
media_module: fix last few seconds of the DD+ stream are not smooth [1/4]
PD#SWPL-714 Problem: The last few seconds of the DD+ stream are not smooth by DTV playback. Solution: check the apts and vpts both discontinue,then replay. Verify: P321 Change-Id: I125a64905623ad639b5e96089e6650dfcb96607b Signed-off-by: Yinming Ding <yinming.ding@amlogic.com>
This commit is contained in:
committed by
Dongjin Kim
parent
23c3b1b555
commit
b62bf43787
@@ -666,12 +666,13 @@ s32 tsdemux_init(u32 vid, u32 aid, u32 sid, u32 pcrid, bool is_hevc,
|
||||
}
|
||||
|
||||
curr_pcr_id = pcrid;
|
||||
pcrscr_valid = reset_pcr_regs();
|
||||
|
||||
if ((pcrid < 0x1FFF) && (pcrid != vid) && (pcrid != aid)
|
||||
&& (pcrid != sid))
|
||||
tsdemux_set_pcrid(pcrid);
|
||||
}
|
||||
|
||||
pcrscr_valid = reset_pcr_regs();
|
||||
first_pcr = 0;
|
||||
|
||||
return 0;
|
||||
@@ -1164,8 +1165,8 @@ u8 tsdemux_pcrvideo_valid(void)
|
||||
void tsdemux_pcr_set(unsigned int pcr)
|
||||
{
|
||||
if (pcr_init_flag == 0) {
|
||||
timestamp_pcrscr_set(pcr);
|
||||
timestamp_pcrscr_enable(1);
|
||||
/*timestamp_pcrscr_set(pcr);
|
||||
timestamp_pcrscr_enable(1);*/
|
||||
pcr_init_flag = 1;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user