Mercurial > libavformat.hg
changeset 544:1244786bfb26 libavformat
cleanup video buffer size
author | michael |
---|---|
date | Sun, 03 Oct 2004 03:14:09 +0000 |
parents | acf8a88674ff |
children | afe2c9a33928 |
files | mpeg.c |
diffstat | 1 files changed, 6 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mpeg.c Sun Oct 03 02:57:42 2004 +0000 +++ b/mpeg.c Sun Oct 03 03:14:09 2004 +0000 @@ -306,13 +306,18 @@ break; case CODEC_TYPE_VIDEO: stream->id = mpv_id++; - if (s->is_vcd) + if (st->codec.rc_buffer_size) + stream->max_buffer_size = 6*1024 + st->codec.rc_buffer_size/8; + else + 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; else /* This value HAS to be used for SVCD (see SVCD standard, p. 26 V.2.3.2). Right now it is also used for everything else.*/ stream->max_buffer_size = 230 * 1024; +#endif s->video_bound++; break; default: