Skip to content

Commit

Permalink
dts_imp: Improve DTS Audio muxing performance by reducing buffer real…
Browse files Browse the repository at this point in the history
…location.
  • Loading branch information
VFR-maniac committed Jul 6, 2018
1 parent ac398d5 commit f963b5a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions importer/dts_imp.c
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,8 @@ static int dts_importer_get_next_accessunit_internal( importer_t *importer )
uint64_t remain_size = lsmash_bs_get_remaining_buffer_size( bs );
if( remain_size < DTS_MAX_EXSS_SIZE )
{
if( bs->buffer.pos > DTS_MAX_EXSS_SIZE * 100 )
lsmash_bs_dispose_past_data( bs );
int err = lsmash_bs_read( bs, bs->buffer.max_size );
if( err < 0 )
{
Expand Down

0 comments on commit f963b5a

Please sign in to comment.