[Ffmpeg-devel] [PATCH] file length handling

Ronald S. Bultje rbultje
Mon Dec 18 15:20:49 CET 2006


Hi,

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.

Cheers,
Ronald
-------------- next part --------------
A non-text attachment was scrubbed...
Name: urictx-len.patch
Type: text/x-patch
Size: 6383 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20061218/fbae9624/attachment.bin>



More information about the ffmpeg-devel mailing list