[Ffmpeg-devel] [PATCH] file length handling
Ronald S. Bultje
Mon Dec 18 15:20:49 CET 2006
attached patch adds a file_size value to URIContext and ByteIOContext
(which sets it to 0 or copies it from URIContext), and uses it
preferentially over using seek_end,-1 to retrieve filesize. This is
useful for http, where seeking may not always be possible, but the size
of the file could still be known through the Content-Length or
Content-Range values in the reply-header.
The patch also adds handling of Content-Length/Range to http.c. I've
also taken the freedom to set it to -1 for tcp/udp/rtp/pipe, although it
really won't make any difference.
Since it changes ABI, I've also increased LIBAVFORMAT_VERSION_INT.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 6383 bytes
Desc: not available
More information about the ffmpeg-devel