diff rdt.c @ 5504:e15a959963f1 libavformat

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.
author rbultje
date Thu, 07 Jan 2010 23:05:19 +0000
parents bb9cdd9ad9de
children fd37c39041cd
line wrap: on
line diff
--- a/rdt.c	Thu Jan 07 22:44:03 2010 +0000
+++ b/rdt.c	Thu Jan 07 23:05:19 2010 +0000
@@ -67,7 +67,7 @@
     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;