[FFmpeg-cvslog] avformat/protocols: Fix ff_urlcontext_child_class_next()
Michael Niedermayer
git at videolan.org
Mon Feb 29 19:36:02 CET 2016
ffmpeg | branch: master | Michael Niedermayer <michael at niedermayer.cc> | Mon Feb 29 19:04:54 2016 +0100| [4899c02c385f8ab4b2be14b2e7fa5d6bfdcfa2a1] | committer: Michael Niedermayer
avformat/protocols: Fix ff_urlcontext_child_class_next()
This fixes -read_ahead_limit
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=4899c02c385f8ab4b2be14b2e7fa5d6bfdcfa2a1
---
libavformat/protocols.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavformat/protocols.c b/libavformat/protocols.c
index f374970..77cd3a4 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;
More information about the ffmpeg-cvslog
mailing list