[vlc-devel] [PATCH 2/4] Increase the avformat mux buffer size to 10 MB.
Georgi Chorbadzhiyski
gf at unixsol.org
Thu Aug 15 15:48:30 CEST 2013
Around 08/15/2013 04:45 PM, Rémi Denis-Courmont scribbled:
> On Thu, 15 Aug 2013 16:42:56 +0300, Georgi Chorbadzhiyski <gf at unixsol.org>
> wrote:
>>> diff --git a/modules/demux/avformat/mux.c
> b/modules/demux/avformat/mux.c
>>> index 90e17dc..f8208a6 100644
>>> --- a/modules/demux/avformat/mux.c
>>> +++ b/modules/demux/avformat/mux.c
>>> @@ -115,7 +115,7 @@ int OpenMux( vlc_object_t *p_this )
>>> strcpy( p_sys->oc->filename, p_mux->p_access->psz_path );
>>>
>>> /* 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.
>
> It might be more readable, but 10260 bytes is not the same as 10 MiB.
Of course I meant 10 * (1024 * 1024) in C :)
--
Georgi Chorbadzhiyski
http://github.com/gfto/
http://georgi.unixsol.org/
More information about the vlc-devel
mailing list