[vlc-devel] [PATCH 2/4] Increase the avformat mux buffer size to 10 MB.
Georgi Chorbadzhiyski
gf at unixsol.org
Thu Aug 15 16:38:14 CEST 2013
Around 08/15/2013 05:09 PM, Steinar H. Gunderson scribbled:
> On Thu, Aug 15, 2013 at 04:42:56PM +0300, Georgi Chorbadzhiyski wrote:
>>> /* Create I/O wrapper */
>>> - p_sys->io_buffer_size = 32768; /* FIXME */
>>> + p_sys->io_buffer_size = 10 << 20; /* FIXME */
>>
>> Nit, IMHO 10 * (1024 ^ 2) is more readable than 10 << 20.
>
> Which one of these do you mean?
>
> 10 * 1024 * 1024
This one, sorry should've written in like C expects not in the
mathematical way.
> 10 * 1048576
> 10 * pow(1024, 2)
> 10485760
>
> 10 * (1024 ^ 2) is obviously 10260 in C, so that won't work. :-)
Obviously :)
--
Georgi Chorbadzhiyski
http://github.com/gfto/
http://georgi.unixsol.org/
More information about the vlc-devel
mailing list