summaryrefslogtreecommitdiff
path: root/libavformat
diff options
context:
space:
mode:
authorPanagiotis Issaris <takis.issaris@uhasselt.be>2006-09-10 21:51:08 +0000
committerGuillaume Poirier <gpoirier@mplayerhq.hu>2006-09-10 21:51:08 +0000
commit8c3dd5dc9cb78f2967ae52b18af3b4f4062c3f0b (patch)
tree620d601bcb930c078e29e2f8e18a168587c65511 /libavformat
parent493f7857dedbe3f8db33cf2c4ed6b9e257e9e42e (diff)
Use and set sane AVOption defaults
Patch by Takis Original thread: Date: Sep 8, 2006 3:26 PM Subject: [Ffmpeg-devel] [PATCH 2/2] Use and set sane AVOption defaults Originally committed as revision 6227 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/utils.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/libavformat/utils.c b/libavformat/utils.c
index a9adb2b3f4..9bac8f8775 100644
--- a/libavformat/utils.c
+++ b/libavformat/utils.c
@@ -465,11 +465,11 @@ static const char* format_to_name(void* ptr)
#define D AV_OPT_FLAG_DECODING_PARAM
static const AVOption options[]={
-{"probesize", NULL, OFFSET(probesize), FF_OPT_TYPE_INT, DEFAULT, 32, INT_MAX, D},
+{"probesize", NULL, OFFSET(probesize), FF_OPT_TYPE_INT, 32000, 32, INT_MAX, D}, /* 32000 from mpegts.c: 1.0 second at 24Mbit/s */
{"fflags", NULL, OFFSET(flags), FF_OPT_TYPE_FLAGS, DEFAULT, INT_MIN, INT_MAX, D, "fflags"},
{"ignidx", "ignore index", 0, FF_OPT_TYPE_CONST, AVFMT_FLAG_IGNIDX, INT_MIN, INT_MAX, D, "fflags"},
{"genpts", "generate pts", 0, FF_OPT_TYPE_CONST, AVFMT_FLAG_GENPTS, INT_MIN, INT_MAX, D, "fflags"},
-{"track", " set the track number", OFFSET(track), FF_OPT_TYPE_INT, DEFAULT, 1, INT_MAX, E},
+{"track", " set the track number", OFFSET(track), FF_OPT_TYPE_INT, DEFAULT, 0, INT_MAX, E},
{"year", "set the year", OFFSET(year), FF_OPT_TYPE_INT, DEFAULT, INT_MIN, INT_MAX, E},
{NULL},
};
@@ -489,9 +489,6 @@ void avformat_get_context_defaults(AVFormatContext *s){
s->av_class = &av_format_context_class;
av_opt_set_defaults(s);
-
- /* from mpegts.c: 1.0 second at 24Mbit/s */
- s->probesize=32000;
}
AVFormatContext *av_alloc_format_context(void)