From 4899c02c385f8ab4b2be14b2e7fa5d6bfdcfa2a1 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Mon, 29 Feb 2016 19:04:54 +0100 Subject: [PATCH] avformat/protocols: Fix ff_urlcontext_child_class_next() This fixes -read_ahead_limit Signed-off-by: Michael Niedermayer --- libavformat/protocols.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/protocols.c b/libavformat/protocols.c index f37497056d..77cd3a4a5c 100644 --- a/libavformat/protocols.c +++ b/libavformat/protocols.c @@ -215,7 +215,7 @@ const AVClass *ff_urlcontext_child_class_next(const AVClass *prev) int i; /* 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) { i++; break;