[vlc-devel] [PATCH 2/4] Increase the avformat mux buffer size to 10 MB.

Steinar H. Gunderson sgunderson at bigfoot.com
Thu Aug 15 16:09:08 CEST 2013


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
  10 * 1048576
  10 * pow(1024, 2)
  10485760

10 * (1024 ^ 2) is obviously 10260 in C, so that won't work. :-)

/* Steinar */
-- 
Homepage: http://www.sesse.net/



More information about the vlc-devel mailing list