[FFmpeg-devel] Set AVIOContext->seekable automatically
Hendrik Schreiber
hs at tagtraum.com
Tue Jul 23 11:27:28 CEST 2013
Hey,
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.
Patch attached.
Cheers,
-hendrik
-------------- next part --------------
A non-text attachment was scrubbed...
Name: set_seekable_automatically.patch
Type: application/octet-stream
Size: 749 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20130723/733790e0/attachment.obj>
More information about the ffmpeg-devel
mailing list