[MPlayer-cvslog] CVS: main/libmpdemux demux_ts.c,1.34,1.35

Guillaume Poirier CVS syncmail at mplayerhq.hu
Tue Aug 23 10:23:55 CEST 2005


CVS change done by Guillaume Poirier CVS

Update of /cvsroot/mplayer/main/libmpdemux
In directory mail:/var2/tmp/cvs-serv13069/libmpdemux

Modified Files:
	demux_ts.c 
Log Message:
Crash fix for: "[MPlayer-users] Crash of mencoder in demux_ts.c line 2728"
"The code which crashes looks like its trying to parse the subtitle stream,
 and failing, I assume because dvbsub_lang is a invalid pointer, or null."
Patch by Nico Sabi


Index: demux_ts.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpdemux/demux_ts.c,v
retrieving revision 1.34
retrieving revision 1.35
diff -u -r1.34 -r1.35
--- demux_ts.c	5 Aug 2005 19:57:46 -0000	1.34
+++ demux_ts.c	23 Aug 2005 08:23:53 -0000	1.35
@@ -2732,6 +2732,8 @@
 						int asgn = 0;
 						uint8_t *lang;
 
+						if(dvdsub_lang)
+						{
 						if(!strcmp(dvdsub_lang, ""))
 							asgn = 1;
 						else
@@ -2742,6 +2744,7 @@
 							else
 								asgn = 0;
 						}
+						}
 
 						if(asgn)
 						{




More information about the MPlayer-cvslog mailing list