[FFmpeg-cvslog] r25385 - trunk/libavformat/mpegenc.c
Alex Converse
alex.converse
Thu Oct 7 05:16:20 CEST 2010
On Wed, Oct 6, 2010 at 6:57 PM, michael <subversion at mplayerhq.hu> wrote:
>
> Author: michael
> Date: Thu Oct ?7 03:57:39 2010
> New Revision: 25385
>
> Log:
> Warn if muxing mpeg ps is attempted without a VBV buffer size.
>
> Modified:
> ? trunk/libavformat/mpegenc.c
>
> Modified: trunk/libavformat/mpegenc.c
> ==============================================================================
> --- trunk/libavformat/mpegenc.c Thu Oct ?7 03:57:35 2010 ? ? ? ?(r25384)
> +++ trunk/libavformat/mpegenc.c Thu Oct ?7 03:57:39 2010 ? ? ? ?(r25385)
> @@ -367,8 +367,10 @@ static int mpeg_mux_init(AVFormatContext
> ? ? ? ? ? ? stream->id = mpv_id++;
> ? ? ? ? ? ? if (st->codec->rc_buffer_size)
> ? ? ? ? ? ? ? ? stream->max_buffer_size = 6*1024 + st->codec->rc_buffer_size/8;
> - ? ? ? ? ? ?else
> + ? ? ? ? ? ?else{
Just two days ago people asked you to put whitespace after keywords.
> + ? ? ? ? ? ? ? ?av_log(ctx, AV_LOG_WARNING, "VBV buffer size not set, muxing may fail\n");
> ? ? ? ? ? ? ? ? stream->max_buffer_size = 230*1024; //FIXME this is probably too small as default
> + ? ? ? ? ? ?}
> ?#if 0
> ? ? ? ? ? ? ? ? /* see VCD standard, p. IV-7*/
> ? ? ? ? ? ? ? ? stream->max_buffer_size = 46 * 1024;
More information about the ffmpeg-cvslog
mailing list