[FFmpeg-devel] [PATCH 1/2] avio: add avio_get_str()

Reimar Döffinger Reimar.Doeffinger
Wed Mar 2 19:56:44 CET 2011

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.

More information about the ffmpeg-devel mailing list