Commit 0c0e3ff4 authored by Gildas Bazin's avatar Gildas Bazin

* modules/mux/ogg.c, modules/stream_out/transcode.c: better fix for the starting pts problem in the ogg muxer.
parent 35bd842a
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* ogg.c: ogg muxer module for vlc * ogg.c: ogg muxer module for vlc
***************************************************************************** *****************************************************************************
* Copyright (C) 2001, 2002 VideoLAN * Copyright (C) 2001, 2002 VideoLAN
* $Id: ogg.c,v 1.16 2003/10/09 18:53:01 gbazin Exp $ * $Id: ogg.c,v 1.17 2003/10/09 19:31:38 gbazin Exp $
* *
* Authors: Laurent Aimar <fenrir@via.ecp.fr> * Authors: Laurent Aimar <fenrir@via.ecp.fr>
* Gildas Bazin <gbazin@netcourrier.com> * Gildas Bazin <gbazin@netcourrier.com>
...@@ -174,7 +174,6 @@ static int MuxGetStream( sout_mux_t *p_mux, int *pi_stream, mtime_t *pi_dts ) ...@@ -174,7 +174,6 @@ static int MuxGetStream( sout_mux_t *p_mux, int *pi_stream, mtime_t *pi_dts )
sout_buffer_t *p_buf; sout_buffer_t *p_buf;
p_buf = sout_FifoShow( p_fifo ); p_buf = sout_FifoShow( p_fifo );
if( p_buf->i_dts ) // To ignore vorbis and theora header packets
if( i_stream < 0 || p_buf->i_dts < i_dts ) if( i_stream < 0 || p_buf->i_dts < i_dts )
{ {
i_dts = p_buf->i_dts; i_dts = p_buf->i_dts;
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* transcode.c * transcode.c
***************************************************************************** *****************************************************************************
* Copyright (C) 2001, 2002 VideoLAN * Copyright (C) 2001, 2002 VideoLAN
* $Id: transcode.c,v 1.40 2003/10/09 18:53:01 gbazin Exp $ * $Id: transcode.c,v 1.41 2003/10/09 19:31:38 gbazin Exp $
* *
* Authors: Laurent Aimar <fenrir@via.ecp.fr> * Authors: Laurent Aimar <fenrir@via.ecp.fr>
* *
...@@ -1004,7 +1004,7 @@ static int transcode_audio_ffmpeg_process( sout_stream_t *p_stream, ...@@ -1004,7 +1004,7 @@ static int transcode_audio_ffmpeg_process( sout_stream_t *p_stream,
p_out->i_size = header[i].bytes; p_out->i_size = header[i].bytes;
p_out->i_length = 0; p_out->i_length = 0;
p_out->i_dts = p_out->i_pts = 0; p_out->i_dts = p_out->i_pts = id->i_dts;
sout_BufferChain( out, p_out ); sout_BufferChain( out, p_out );
} }
...@@ -1496,6 +1496,8 @@ static int transcode_video_ffmpeg_process( sout_stream_t *p_stream, ...@@ -1496,6 +1496,8 @@ static int transcode_video_ffmpeg_process( sout_stream_t *p_stream,
sout_buffer_t *p_out; sout_buffer_t *p_out;
p_out = sout_BufferNew( p_stream->p_sout, p_block->i_buffer ); p_out = sout_BufferNew( p_stream->p_sout, p_block->i_buffer );
memcpy( p_out->p_buffer, p_block->p_buffer, p_block->i_buffer); memcpy( p_out->p_buffer, p_block->p_buffer, p_block->i_buffer);
p_out->i_dts = id->i_dts;
p_out->i_pts = id->i_dts;
sout_BufferChain( out, p_out ); sout_BufferChain( out, p_out );
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment