[SCM] libav/experimental: Warn if muxing mpeg ps is attempted without a VBV buffer size.

siretart at users.alioth.debian.org siretart at users.alioth.debian.org
Sun Jun 30 17:17:11 UTC 2013


The following commit has been merged in the experimental branch:
commit 34b9e5bc4f90ddfe559fe77b2b50e090b64ebe75
Author: Michael Niedermayer <michaelni at gmx.at>
Date:   Thu Oct 7 01:57:39 2010 +0000

    Warn if muxing mpeg ps is attempted without a VBV buffer size.
    
    Originally committed as revision 25385 to svn://svn.ffmpeg.org/ffmpeg/trunk

diff --git a/libavformat/mpegenc.c b/libavformat/mpegenc.c
index f94b9fa..9580ca2 100644
--- a/libavformat/mpegenc.c
+++ b/libavformat/mpegenc.c
@@ -367,8 +367,10 @@ static int mpeg_mux_init(AVFormatContext *ctx)
             stream->id = mpv_id++;
             if (st->codec->rc_buffer_size)
                 stream->max_buffer_size = 6*1024 + st->codec->rc_buffer_size/8;
-            else
+            else{
+                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;

-- 
Libav/FFmpeg packaging



More information about the pkg-multimedia-commits mailing list