[vlc-devel] commit: set i_start_time with AV_TIME_BASE, fixes streaming flv from file ( for me) (Ilkka Ollakka )
git version control
git at videolan.org
Mon Mar 3 01:24:48 CET 2008
vlc | branch: master | Ilkka Ollakka <ileoo at videolan.org> | Mon Mar 3 02:23:53 2008 +0200| [875f1b2adb133f3e0a617a0d8d5640e05308ba0b]
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.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=875f1b2adb133f3e0a617a0d8d5640e05308ba0b
---
modules/codec/ffmpeg/demux.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/modules/codec/ffmpeg/demux.c b/modules/codec/ffmpeg/demux.c
index 1fc666a..36f307e 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 *
More information about the vlc-devel
mailing list