Skip to content
Snippets Groups Projects
Commit 84f0aba1 authored by Ronald S. Bultje's avatar Ronald S. Bultje
Browse files

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
parent 063e7692
No related branches found
No related tags found
No related merge requests found
...@@ -67,7 +67,7 @@ ff_rdt_parse_open(AVFormatContext *ic, int first_stream_of_set_idx, ...@@ -67,7 +67,7 @@ ff_rdt_parse_open(AVFormatContext *ic, int first_stream_of_set_idx,
s->prev_set_id = -1; s->prev_set_id = -1;
s->prev_stream_id = -1; s->prev_stream_id = -1;
s->prev_timestamp = -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; s->dynamic_protocol_context = priv_data;
return s; return s;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment