diff options
author | Ronald S. Bultje <rsbultje@gmail.com> | 2010-01-07 23:05:19 +0000 |
---|---|---|
committer | Ronald S. Bultje <rsbultje@gmail.com> | 2010-01-07 23:05:19 +0000 |
commit | 84f0aba18dc8815c5cd408238909e4dc8b60684f (patch) | |
tree | 4103f90ae264fd3c736f734d58506a38519a0721 /libavformat/rdt.c | |
parent | 063e7692731798426ef90989211ed7d07f9dc38f (diff) | |
download | ffmpeg-84f0aba18dc8815c5cd408238909e4dc8b60684f.tar.gz |
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
Diffstat (limited to 'libavformat/rdt.c')
-rw-r--r-- | libavformat/rdt.c | 2 |
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; |