[vlc-devel] commit: Improved ogm support + fix typo. (Laurent Aimar )
git version control
git at videolan.org
Tue Nov 18 20:17:33 CET 2008
vlc | branch: master | Laurent Aimar <fenrir at videolan.org> | Tue Nov 18 20:16:28 2008 +0100| [53705ef119e5f6dbf76844fce87f66a690d5e606] | committer: Laurent Aimar
Improved ogm support + fix typo.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=53705ef119e5f6dbf76844fce87f66a690d5e606
---
modules/demux/ogg.c | 9 ++++++++-
1 files changed, 8 insertions(+), 1 deletions(-)
diff --git a/modules/demux/ogg.c b/modules/demux/ogg.c
index d13f0c7..ed8c576 100644
--- a/modules/demux/ogg.c
+++ b/modules/demux/ogg.c
@@ -1341,7 +1341,14 @@ static int Ogg_BeginningOfStream( demux_t *p_demux )
}
if( !p_stream->p_es )
+ {
+ /* Better be safe than sorry when possible with ogm */
+ if( p_stream->fmt.i_codec == VLC_FOURCC( 'm', 'p', 'g', 'a' ) ||
+ p_stream->fmt.i_codec == VLC_FOURCC( 'a', '5', '2', ' ' ) )
+ p_stream->fmt.b_packetized = false;
+
p_stream->p_es = es_out_Add( p_demux->out, &p_stream->fmt );
+ }
// TODO: something to do here ?
if( p_stream->fmt.i_codec == VLC_FOURCC('c','m','m','l') )
@@ -1830,7 +1837,7 @@ static void Ogg_ReadDiracHeader( logical_stream_t *p_stream,
if( dirac_bool( &bs ) )
{
uint32_t u_frame_rate_index = dirac_uint( &bs );
- if( u_frame_rate_index > u_dirac_frate_tbl )
+ if( u_frame_rate_index >= u_dirac_frate_tbl )
u_frame_rate_index = 0;
u_n = p_dirac_frate_tbl[u_frame_rate_index].u_n;
u_d = p_dirac_frate_tbl[u_frame_rate_index].u_d;
More information about the vlc-devel
mailing list