summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRonald S. Bultje <rsbultje@gmail.com>2010-01-07 23:05:19 +0000
committerRonald S. Bultje <rsbultje@gmail.com>2010-01-07 23:05:19 +0000
commit84f0aba18dc8815c5cd408238909e4dc8b60684f (patch)
tree4103f90ae264fd3c736f734d58506a38519a0721
parent063e7692731798426ef90989211ed7d07f9dc38f (diff)
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. Originally committed as revision 21078 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r--libavformat/rdt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/rdt.c b/libavformat/rdt.c
index 24ee6a993d..fa909e6023 100644
--- a/libavformat/rdt.c
+++ b/libavformat/rdt.c
@@ -67,7 +67,7 @@ ff_rdt_parse_open(AVFormatContext *ic, int first_stream_of_set_idx,
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;