author | miaohong chen <miaohong.chen@amlogic.com> | 2020-09-18 02:37:26 (GMT) |
---|---|---|
committer | Shen Liu <shen.liu@amlogic.com> | 2020-09-27 11:42:56 (GMT) |
commit | 14cca6de4524063b693a867829590ea6a170a454 (patch) | |
tree | 166d7fb6468c871f8d2a0a0d4033622a4ec6edfa | |
parent | 725d8c5c643a267cdf1fa17b2e3556d0ebd89afe (diff) | |
download | media_modules-14cca6de4524063b693a867829590ea6a170a454.zip media_modules-14cca6de4524063b693a867829590ea6a170a454.tar.gz media_modules-14cca6de4524063b693a867829590ea6a170a454.tar.bz2 |
h265: add init stream offset [1/1]
PD#SWPL-33557
Problem:
The stream offset is not initialized each time the start broadcast,
which causes it to accumulate, so that the correct pts
cannot be obtained, which may cause out of synchronization.
Solution:
init stream offset when start every time.
Verify:
u212
Change-Id: Iba8df5525cfcf6b8b42ef4fc4c464ae681202272
Signed-off-by: miaohong chen <miaohong.chen@amlogic.com>
-rw-r--r-- | drivers/frame_provider/decoder/h265/vh265.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/frame_provider/decoder/h265/vh265.c b/drivers/frame_provider/decoder/h265/vh265.c index bbca93f..9403fa2 100644 --- a/drivers/frame_provider/decoder/h265/vh265.c +++ b/drivers/frame_provider/decoder/h265/vh265.c @@ -10141,6 +10141,9 @@ static s32 vh265_init(struct hevc_state_s *hevc) set_vdec_func(&vh265_dec_status); #endif amhevc_start(); + + WRITE_VREG(HEVC_SHIFT_BYTE_COUNT, 0); + hevc->stat |= STAT_VDEC_RUN; hevc->init_flag = 1; error_handle_threshold = 30; |