[FFmpeg-devel] Set AVIOContext->seekable automatically
hs at tagtraum.com
Tue Jul 23 11:27:28 CEST 2013
just because I wasted some time on this, when I was working with it.
When creating an AVIOContext (for an in memory source, for example). one uses avio_alloc_context.
There are cases when one cannot seek (e.g. in a stream). For avio_alloc_context this means that the seek function pointer is NULL.
Wouldn't it make sense to initialize seekable accordingly, i.e. set it to 0 when the function pointer is NULL? Would have saved me a couple of hours.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 749 bytes
Desc: not available
More information about the ffmpeg-devel