summaryrefslogtreecommitdiff
path: root/libavformat
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2003-05-05 20:47:23 +0000
committerMichael Niedermayer <michaelni@gmx.at>2003-05-05 20:47:23 +0000
commitb530f842623e39f86b529b537de882bd0a6afbce (patch)
treea8404430374826921060d5fb67cf8b2b2b0557bc /libavformat
parentbd0739804640939fea4fb6f1f625b82432d46947 (diff)
VOB stream patch ba (Brian Foley <bfoley at compsoc dot nuigalway dot ie>)
Originally committed as revision 1836 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/utils.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/libavformat/utils.c b/libavformat/utils.c
index 46dc4ea21c..460fb22d39 100644
--- a/libavformat/utils.c
+++ b/libavformat/utils.c
@@ -475,18 +475,18 @@ int av_find_stream_info(AVFormatContext *ic)
int min_read_size, max_read_size;
/* typical mpeg ts rate is 40 Mbits. DVD rate is about 10
- Mbits. We read at most 0.1 second of file to find all streams */
+ Mbits. We read at most 0.2 second of file to find all streams */
/* XXX: base it on stream bitrate when possible */
if (ic->iformat == &mpegts_demux) {
/* maximum number of bytes we accept to read to find all the streams
in a file */
- min_read_size = 3000000;
+ min_read_size = 6000000;
} else {
- min_read_size = 125000;
+ min_read_size = 250000;
}
/* max read size is 2 seconds of video max */
- max_read_size = min_read_size * 20;
+ max_read_size = min_read_size * 10;
/* set initial codec state */
for(i=0;i<ic->nb_streams;i++) {