On Wed, 28 Mar 2012 16:52:54 -0700, "Viraj (libav)" <[email protected]> wrote: > Hi, > > I want to pass a buffer as input to libav for transcoding. > > I came across ByteIOContext, which has now been changed to AVIOContext. But > I could not find any example as to how to do it exactly. >
To create an AVIOContext based purely on a memory buffer, just pass the buffer to avio_alloc_context(), with all callbacks set to NULL. See e.g. read_gab2_sub() in libavformat/avidec.c for an example. -- Anton Khirnov _______________________________________________ libav-api mailing list [email protected] https://lists.libav.org/mailman/listinfo/libav-api
