Commit 4899c02c authored by Michael Niedermayer's avatar Michael Niedermayer

avformat/protocols: Fix ff_urlcontext_child_class_next()

This fixes -read_ahead_limit
Signed-off-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
parent a6cd817a
...@@ -215,7 +215,7 @@ const AVClass *ff_urlcontext_child_class_next(const AVClass *prev) ...@@ -215,7 +215,7 @@ const AVClass *ff_urlcontext_child_class_next(const AVClass *prev)
int i; int i;
/* find the protocol that corresponds to prev */ /* find the protocol that corresponds to prev */
for (i = 0; url_protocols[i]; i++) { for (i = 0; prev && url_protocols[i]; i++) {
if (url_protocols[i]->priv_data_class == prev) { if (url_protocols[i]->priv_data_class == prev) {
i++; i++;
break; break;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment