Skip to content
Snippets Groups Projects
Commit 572f5eb1 authored by Michael Niedermayer's avatar Michael Niedermayer
Browse files

avformat/mpegenc: try to improve the VBV buffer warning


Maybe fixes Ticket 3494
Part of the message suggested by: rogerdpack
Signed-off-by: default avatarMichael Niedermayer <michaelni@gmx.at>
parent 3b808900
Branches
Tags
No related merge requests found
...@@ -387,7 +387,9 @@ static av_cold int mpeg_mux_init(AVFormatContext *ctx) ...@@ -387,7 +387,9 @@ static av_cold int mpeg_mux_init(AVFormatContext *ctx)
if (st->codec->rc_buffer_size) if (st->codec->rc_buffer_size)
stream->max_buffer_size = 6*1024 + st->codec->rc_buffer_size/8; 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"); av_log(ctx, AV_LOG_WARNING, "VBV buffer size not set, using default size of 130KB\n"
"If you want the mpeg file to be compliant to some specification\n"
"Like DVD, VCD or others, make sure you set the correct buffer size\n");
stream->max_buffer_size = 230*1024; //FIXME this is probably too small as default stream->max_buffer_size = 230*1024; //FIXME this is probably too small as default
} }
if (stream->max_buffer_size > 1024 * 8191) { if (stream->max_buffer_size > 1024 * 8191) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment