aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/avio_internal.h
diff options
context:
space:
mode:
authorMartin Storsjö <martin@martin.st>2011-11-06 23:03:45 +0200
committerAnton Khirnov <anton@khirnov.net>2011-11-13 13:17:04 +0100
commit1dee0aca7401fc6c01f23ceedaff6533efb0fb28 (patch)
treedbd6104edaaf97d9b48d84cc9ee75ca1747d48e3 /libavformat/avio_internal.h
parentddffc2fdc351d60ca190b016cccff4acff27823f (diff)
downloadffmpeg-1dee0aca7401fc6c01f23ceedaff6533efb0fb28.tar.gz
avio: add avio_open2, taking an interrupt callback and options
The interrupt callback has to be passed in during opening (setting it after opening isn't enough), since a blocking open couldn't be interrupted otherwise. Options are passed down to procotols and also need to be available during open() in most cases. Signed-off-by: Anton Khirnov <anton@khirnov.net>
Diffstat (limited to 'libavformat/avio_internal.h')
-rw-r--r--libavformat/avio_internal.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/libavformat/avio_internal.h b/libavformat/avio_internal.h
index 1369c43891..f2ccc36623 100644
--- a/libavformat/avio_internal.h
+++ b/libavformat/avio_internal.h
@@ -23,6 +23,10 @@
#include "avio.h"
#include "url.h"
+#include "libavutil/log.h"
+
+extern const AVClass ffio_url_class;
+
int ffio_init_context(AVIOContext *s,
unsigned char *buffer,
int buffer_size,