From: Ilkka Ollakka Date: Mon, 3 Mar 2008 00:23:53 +0000 (+0200) Subject: set i_start_time with AV_TIME_BASE, fixes streaming flv from file (for me) X-Git-Tag: 0.9.0-test0~2370 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=875f1b2adb133f3e0a617a0d8d5640e05308ba0b;p=vlc 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. --- diff --git a/modules/codec/ffmpeg/demux.c b/modules/codec/ffmpeg/demux.c index 1fc666aba5..36f307eec4 100644 --- a/modules/codec/ffmpeg/demux.c +++ b/modules/codec/ffmpeg/demux.c @@ -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 *