On Mon, 8 Oct 2012, Luca Barbato wrote:

URLProtocols are private and custom AVIOContexts are a simple and
easier solution for most of the situations.
---
doc/faq.texi | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/doc/faq.texi b/doc/faq.texi
index 79ef3b5..a23604c 100644
--- a/doc/faq.texi
+++ b/doc/faq.texi
@@ -337,8 +337,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.

Is the MPlayer2 source reference up to date so that it actually uses this and serves as a good example? If so, LGTM.

// Martin
_______________________________________________
libav-devel mailing list
libav-devel@libav.org
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to