aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2016-02-29 19:04:54 +0100
committerMichael Niedermayer <michael@niedermayer.cc>2016-02-29 19:34:52 +0100
commit4899c02c385f8ab4b2be14b2e7fa5d6bfdcfa2a1 (patch)
treec676b8b5ed672e8794e95b6daead0e81a922392e /libavformat
parenta6cd817a544e4e526f18391bd2c7112dc12d2f94 (diff)
downloadffmpeg-4899c02c385f8ab4b2be14b2e7fa5d6bfdcfa2a1.tar.gz
avformat/protocols: Fix ff_urlcontext_child_class_next()
This fixes -read_ahead_limit Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/protocols.c2
1 files changed, 1 insertions, 1 deletions
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;