Commit 875f1b2a authored by Ilkka Ollakka's avatar Ilkka Ollakka

set i_start_time with AV_TIME_BASE, fixes streaming flv from file (for me)

and doesn't seem to affect any regression on demuxing.
parent 50c2f442
......@@ -312,7 +312,7 @@ static int Demux( demux_t *p_demux )
memcpy( p_frame->p_buffer, pkt.data, pkt.size );
i_start_time = ( p_sys->ic->start_time != (int64_t)AV_NOPTS_VALUE ) ?
p_sys->ic->start_time : 0;
( p_sys->ic->start_time / AV_TIME_BASE ) : 0;
p_frame->i_dts = ( pkt.dts == (int64_t)AV_NOPTS_VALUE ) ?
0 : (pkt.dts - i_start_time) * 1000000 *
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment