Mercurial > libavformat.hg
diff utils.c @ 1279:a12e0b434174 libavformat
added option probesize; at the moment only used by mpegts.c
author | nicodvb |
---|---|
date | Sun, 27 Aug 2006 12:21:19 +0000 |
parents | f40d75601106 |
children | b5226e679a31 |
line wrap: on
line diff
--- a/utils.c Sun Aug 27 12:14:13 2006 +0000 +++ b/utils.c Sun Aug 27 12:21:19 2006 +0000 @@ -461,6 +461,7 @@ #define D AV_OPT_FLAG_DECODING_PARAM static const AVOption options[]={ +{"probesize", NULL, OFFSET(probesize), FF_OPT_TYPE_INT, DEFAULT, 32, INT_MAX, D}, {NULL}, }; @@ -468,6 +469,9 @@ void avformat_get_context_defaults(AVFormatContext *s){ memset(s, 0, sizeof(AVFormatContext)); + + /* from mpegts.c: 1.0 second at 24Mbit/s */ + s->probesize=32000; } AVFormatContext *av_alloc_format_context(void)