mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
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
This commit is contained in:
parent
063e769273
commit
84f0aba18d
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user