[vlc-devel] commit: i_start_time set with AV_TIME_BASE divider, seems only to have effect (Ilkka Ollakka )

git version control git at videolan.org
Mon Mar 3 01:08:10 CET 2008


vlc | branch: master | Ilkka Ollakka <ileoo at videolan.org> | Mon Mar  3 01:39:01 2008 +0200| [eba7430d2f8738b6f57b1f243a8d8136f2a21b13]

i_start_time set with AV_TIME_BASE divider, seems only to have effect
when ffmpeg is used to mux output-stream (like flv from file).

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=eba7430d2f8738b6f57b1f243a8d8136f2a21b13
---

 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..dfc37e4 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