Skip to content

Commit

Permalink
For Canon test #2
Browse files Browse the repository at this point in the history
  • Loading branch information
linkflowlab committed Aug 26, 2020
1 parent 45911cb commit c28123b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/access/live555.cpp
Expand Up @@ -1971,14 +1971,14 @@ static void StreamRead( void *p_private, unsigned int i_size,
#else
gettimeofday(&ptsNow, NULL);
#endif
vlc_tick_t i_pts = vlc_tick_from_timeval( &ptsNow );
vlc_tick_t i_pts = vlc_tick_now();//vlc_tick_from_timeval( &ptsNow );
//msg_Dbg( p_demux, "pts: %"PRId64"", ptsNow.tv_sec * 1000000 + ptsNow.tv_usec );

/* XXX Beurk beurk beurk Avoid having negative value XXX */
i_pts &= INT64_C(0x00ffffffffffffff);

/* Retrieve NPT for this pts */
tk->f_npt = tk->sub->getNormalPlayTime(ptsNow);
tk->f_npt = tk->sub->getNormalPlayTime(pts);

if( tk->format == live_track_t::QUICKTIME_STREAM && tk->p_es == NULL )
{
Expand Down

0 comments on commit c28123b

Please sign in to comment.