diff --git a/modules/demux/avformat/demux.c b/modules/demux/avformat/demux.c index a8042b8e5d0299bfa0cac9ca5bc47bb9eb61f3a3..b195d27177bb9c3ac842918eb11cdf84e1eb693b 100644 --- a/modules/demux/avformat/demux.c +++ b/modules/demux/avformat/demux.c @@ -652,7 +652,7 @@ static block_t *BuildSsaFrame( const AVPacket *p_pkt, unsigned i_order ) block_t *p_frame = block_heap_Alloc( p, p, strlen(p) + 1 ); if( p_frame ) - p_frame->i_length = CLOCK_FREQ * ((h1 - h1) * 3600 + + p_frame->i_length = CLOCK_FREQ * ((h1-h0) * 3600 + (m1-m0) * 60 + (s1-s0) * 1) + CLOCK_FREQ * (c1-c0) / 100;