[MPlayer-cvslog] r21544 - trunk/libmpdemux/demux_ogg.c
reimar
subversion at mplayerhq.hu
Sat Dec 9 12:59:09 CET 2006
Author: reimar
Date: Sat Dec 9 12:59:09 2006
New Revision: 21544
Modified:
trunk/libmpdemux/demux_ogg.c
Log:
Fix crash in ogg demuxer uninit with -aid
Modified: trunk/libmpdemux/demux_ogg.c
==============================================================================
--- trunk/libmpdemux/demux_ogg.c (original)
+++ trunk/libmpdemux/demux_ogg.c Sat Dec 9 12:59:09 2006
@@ -1612,7 +1612,7 @@
if (ogg_d->text_langs[i]) free(ogg_d->text_langs[i]);
free(ogg_d->text_langs);
}
- if(demuxer->audio->id > -1) {
+ if(demuxer->audio->id > -1 && demuxer->audio->id < ogg_d->num_sub) {
os = &ogg_d->subs[demuxer->audio->id];
if(os && os->vi_inited)
vorbis_info_clear(&os->vi);
More information about the MPlayer-cvslog
mailing list