[Mplayer-dev-eng] SEGV during verbose .asf playback

Juergen Keil jk at tools.de
Thu Jun 21 12:51:12 CEST 2001


Hi,

when playing .asf files that contain chunks of unknown type with "mplayer -v",
mplayer segfaults  - because of a ``printf("...%s...", NULL)''.

Fix:

Index: asfheader.c
===================================================================
RCS file: /cvsroot/mplayer/main/asfheader.c,v
retrieving revision 1.16
diff -u -B -r1.16 asfheader.c
--- asfheader.c 2001/06/04 18:01:05     1.16
+++ asfheader.c 2001/06/21 10:48:52
@@ -110,8 +110,8 @@
     case 0xB7DC0791: return "guid_stream_header";
     case 0xD6E229D1: return "guid_header_2_0";
     case 0x8CABDCA1: return "guid_file_header";
+    default:        return "unknown";
   }
-  return NULL;
 }
 
 int asf_check_header(demuxer_t *demuxer){


--
Jürgen Keil          		jk at tools.de
Tools GmbH			+49 (228) 9858011


_______________________________________________
Mplayer-dev-eng mailing list
Mplayer-dev-eng at lists.sourceforge.net
http://lists.sourceforge.net/lists/listinfo/mplayer-dev-eng



More information about the MPlayer-dev-eng mailing list