OSDN Git Service
(root)
/
coroid
/
libav_saccubus.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2dec2bb
)
Warn if muxing mpeg ps is attempted without a VBV buffer size.
author
Michael Niedermayer
<michaelni@gmx.at>
Thu, 7 Oct 2010 01:57:39 +0000
(
01:57
+0000)
committer
Michael Niedermayer
<michaelni@gmx.at>
Thu, 7 Oct 2010 01:57:39 +0000
(
01:57
+0000)
Originally committed as revision 25385 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavformat/mpegenc.c
patch
|
blob
|
history
diff --git
a/libavformat/mpegenc.c
b/libavformat/mpegenc.c
index
f94b9fa
..
9580ca2
100644
(file)
--- 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;