diff options
author | Michael Niedermayer <michael@niedermayer.cc> | 2016-02-29 19:04:54 +0100 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2016-02-29 19:34:52 +0100 |
commit | 4899c02c385f8ab4b2be14b2e7fa5d6bfdcfa2a1 (patch) | |
tree | c676b8b5ed672e8794e95b6daead0e81a922392e /libavformat/protocols.c | |
parent | a6cd817a544e4e526f18391bd2c7112dc12d2f94 (diff) | |
download | ffmpeg-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/protocols.c')
-rw-r--r-- | libavformat/protocols.c | 2 |
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; |