[vlc-commits] commit: Ogg mux: make sure to reject if ES_type is not one expected ( Jean-Baptiste Kempf )

git at videolan.org git at videolan.org
Wed Nov 3 14:41:16 CET 2010


vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Wed Nov  3 13:30:43 2010 +0100| [6ba5e8e8083e5825d0de7d257a377721a5ee7614] | committer: Jean-Baptiste Kempf 

Ogg mux: make sure to reject if ES_type is not one expected

This is extra-precaution, but it cannot do harm

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

 modules/mux/ogg.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/modules/mux/ogg.c b/modules/mux/ogg.c
index a2de860..044ddc7 100644
--- a/modules/mux/ogg.c
+++ b/modules/mux/ogg.c
@@ -990,6 +990,8 @@ static int MuxBlock( sout_mux_t *p_mux, sout_input_t *p_input )
         /* granulepos is in millisec */
         op.granulepos = ( p_data->i_dts - p_sys->i_start_dts ) / 1000;
     }
+    else
+        return VLC_EGENERIC;
 
     p_stream->u_last_granulepos = op.granulepos;
     ogg_stream_packetin( &p_stream->os, &op );



More information about the vlc-commits mailing list