changeset 16292:f779d1c1c593

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
author gpoirier
date Tue, 23 Aug 2005 08:23:53 +0000
parents f443f849531b
children e9155b7a9442
files libmpdemux/demux_ts.c
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libmpdemux/demux_ts.c	Tue Aug 23 08:03:26 2005 +0000
+++ b/libmpdemux/demux_ts.c	Tue Aug 23 08:23:53 2005 +0000
@@ -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)
 						{