[FFmpeg-cvslog] r21078 - trunk/libavformat/rdt.c

rbultje subversion
Fri Jan 8 00:05:19 CET 2010


Author: rbultje
Date: Fri Jan  8 00:05:19 2010
New Revision: 21078

Log:
handler can be NULL if we did not support this dynamic format (codec).
Fixes issue 1658 (the crasher), although the format itself is obviously 
still unsupported.

Modified:
   trunk/libavformat/rdt.c

Modified: trunk/libavformat/rdt.c
==============================================================================
--- trunk/libavformat/rdt.c	Thu Jan  7 23:59:22 2010	(r21077)
+++ trunk/libavformat/rdt.c	Fri Jan  8 00:05:19 2010	(r21078)
@@ -67,7 +67,7 @@ ff_rdt_parse_open(AVFormatContext *ic, i
     s->prev_set_id    = -1;
     s->prev_stream_id = -1;
     s->prev_timestamp = -1;
-    s->parse_packet = handler->parse_packet;
+    s->parse_packet = handler ? handler->parse_packet : NULL;
     s->dynamic_protocol_context = priv_data;
 
     return s;



More information about the ffmpeg-cvslog mailing list