[vlc-devel] commit: Fixed ES block length value (avformat). (Laurent Aimar )
git version control
git at videolan.org
Sat Feb 20 14:13:07 CET 2010
vlc | branch: master | Laurent Aimar <fenrir at videolan.org> | Sat Feb 20 13:07:55 2010 +0100| [2f7813804454a339f017ff8fc892dfbeb022bde0] | committer: Laurent Aimar
Fixed ES block length value (avformat).
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=2f7813804454a339f017ff8fc892dfbeb022bde0
---
modules/demux/avformat/demux.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/modules/demux/avformat/demux.c b/modules/demux/avformat/demux.c
index 4787ef7..428aa16 100644
--- a/modules/demux/avformat/demux.c
+++ b/modules/demux/avformat/demux.c
@@ -519,7 +519,7 @@ static int Demux( demux_t *p_demux )
if( pkt.duration > 0 )
p_frame->i_length = pkt.duration * 1000000 *
p_stream->time_base.num /
- p_stream->time_base.den - i_start_time;
+ p_stream->time_base.den;
if( pkt.dts != AV_NOPTS_VALUE && pkt.dts == pkt.pts &&
p_stream->codec->codec_type == CODEC_TYPE_VIDEO )
More information about the vlc-devel
mailing list