Mercurial > libavformat.hg
comparison 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 |
comparison
equal
deleted
inserted
replaced
1278:f40d75601106 | 1279:a12e0b434174 |
---|---|
459 //these names are too long to be readable | 459 //these names are too long to be readable |
460 #define E AV_OPT_FLAG_ENCODING_PARAM | 460 #define E AV_OPT_FLAG_ENCODING_PARAM |
461 #define D AV_OPT_FLAG_DECODING_PARAM | 461 #define D AV_OPT_FLAG_DECODING_PARAM |
462 | 462 |
463 static const AVOption options[]={ | 463 static const AVOption options[]={ |
464 {"probesize", NULL, OFFSET(probesize), FF_OPT_TYPE_INT, DEFAULT, 32, INT_MAX, D}, | |
464 {NULL}, | 465 {NULL}, |
465 }; | 466 }; |
466 | 467 |
467 static const AVClass av_format_context_class = { "AVFormatContext", format_to_name, options }; | 468 static const AVClass av_format_context_class = { "AVFormatContext", format_to_name, options }; |
468 | 469 |
469 void avformat_get_context_defaults(AVFormatContext *s){ | 470 void avformat_get_context_defaults(AVFormatContext *s){ |
470 memset(s, 0, sizeof(AVFormatContext)); | 471 memset(s, 0, sizeof(AVFormatContext)); |
472 | |
473 /* from mpegts.c: 1.0 second at 24Mbit/s */ | |
474 s->probesize=32000; | |
471 } | 475 } |
472 | 476 |
473 AVFormatContext *av_alloc_format_context(void) | 477 AVFormatContext *av_alloc_format_context(void) |
474 { | 478 { |
475 AVFormatContext *ic; | 479 AVFormatContext *ic; |