doc: update the faq entry about custom I/O
authorLuca Barbato <lu_zero@gentoo.org>
Sun, 7 Oct 2012 21:19:29 +0000 (21:19 +0000)
committerLuca Barbato <lu_zero@gentoo.org>
Thu, 11 Oct 2012 13:12:30 +0000 (15:12 +0200)
URLProtocols are private and custom AVIOContexts are a simple and
easier solution for most of the situations.

doc/faq.texi

index ac06ebf..088ca03 100644 (file)
@@ -336,8 +336,8 @@ to use them you have to append -D__STDC_CONSTANT_MACROS to your CXXFLAGS
 
 @section I have a file in memory / a API different from *open/*read/ libc how do I use it with libavformat?
 
-You have to implement a URLProtocol, see @file{libavformat/file.c} in
-Libav and @file{libmpdemux/demux_lavf.c} in MPlayer sources.
+You have to create a custom AVIOContext using @code{avio_alloc_context},
+see @file{libavformat/aviobuf.c} in Libav and @file{libmpdemux/demux_lavf.c} in MPlayer2 sources.
 
 @section Why is @code{make fate} not running all tests?