[Libav-user] avio_alloc_context api comments
Anshul
er.anshul.maheshwari at gmail.com
Wed Jun 19 07:43:51 CEST 2013
HI
I was using ffmpeg version 1.2.1
I wanted to use avio_alloc_context api. there was confusion about third
argument of avio_alloc_context
in comment above the api, developers had said that::
" @param write_flag Set to 1 if the buffer should be writable, 0 otherwise."
*but when i debug the code of muxing example,then i found that they
**flags value is 2 *
( (gdb) print h->flags ; $4 = 2)
*through gdb also it look like 2 *
Breakpoint 3, avio_alloc_context (buffer=0x8f6e980 "\310\347\366\b",
buffer_size=32768, write_flag=2, opaque=0x8f6e940, read_packet=0x805faf7
<ffurl_read>,
write_packet=0x805fb8a <ffurl_write>, seek=0x805fbef <ffurl_seek>)
at libavformat/aviobuf.c:118
118 AVIOContext *s = av_mallocz(sizeof(AVIOContext));
*Do any one know what should i pass as third argument 1 or 2, if i am
allocating io of output **
**means i need to write **
*
thanks
anshul
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://ffmpeg.org/pipermail/libav-user/attachments/20130619/e51b8062/attachment.html>
More information about the Libav-user
mailing list