mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-26 19:01:44 +02:00
added option probesize; at the moment only used by mpegts.c
Originally committed as revision 6109 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
4eb72c6b23
commit
9e6c94707e
@ -341,6 +341,8 @@ typedef struct AVFormatContext {
|
|||||||
#define AVFMT_FLAG_GENPTS 0x0001 ///< generate pts if missing even if it requires parsing future frames
|
#define AVFMT_FLAG_GENPTS 0x0001 ///< generate pts if missing even if it requires parsing future frames
|
||||||
|
|
||||||
int loop_input;
|
int loop_input;
|
||||||
|
/* decoding: size of data to probe; encoding unused */
|
||||||
|
unsigned int probesize;
|
||||||
} AVFormatContext;
|
} AVFormatContext;
|
||||||
|
|
||||||
typedef struct AVPacketList {
|
typedef struct AVPacketList {
|
||||||
|
@ -461,6 +461,7 @@ static const char* format_to_name(void* ptr)
|
|||||||
#define D AV_OPT_FLAG_DECODING_PARAM
|
#define D AV_OPT_FLAG_DECODING_PARAM
|
||||||
|
|
||||||
static const AVOption options[]={
|
static const AVOption options[]={
|
||||||
|
{"probesize", NULL, OFFSET(probesize), FF_OPT_TYPE_INT, DEFAULT, 32, INT_MAX, D},
|
||||||
{NULL},
|
{NULL},
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -468,6 +469,9 @@ static const AVClass av_format_context_class = { "AVFormatContext", format_to_na
|
|||||||
|
|
||||||
void avformat_get_context_defaults(AVFormatContext *s){
|
void avformat_get_context_defaults(AVFormatContext *s){
|
||||||
memset(s, 0, sizeof(AVFormatContext));
|
memset(s, 0, sizeof(AVFormatContext));
|
||||||
|
|
||||||
|
/* from mpegts.c: 1.0 second at 24Mbit/s */
|
||||||
|
s->probesize=32000;
|
||||||
}
|
}
|
||||||
|
|
||||||
AVFormatContext *av_alloc_format_context(void)
|
AVFormatContext *av_alloc_format_context(void)
|
||||||
|
Loading…
Reference in New Issue
Block a user