[FFmpeg-devel] [PATCH 1/2] avio: add avio_get_str()
Wed Mar 2 20:34:19 CET 2011
Reimar D?ffinger <Reimar.Doeffinger at gmx.de> writes:
> On Wed, Mar 02, 2011 at 06:41:34PM +0000, M?ns Rullg?rd wrote:
>> What is the purpose of passing both maxlen and buflen? The caller can
>> simply use whichever is smaller.
> The point is to be able to discard more than you read.
>> Is the return value the number of bytes read or the number of bytes
>> stored? The comment does say read, but the difference is subtle enough
>> that I want to double-check.
> Yes, read.
It should be noted that if reading hits end of file or error, the return
value will be one more than bytes actually read.
mans at mansr.com
More information about the ffmpeg-devel