[Ffmpeg-cvslog] r6109 - in trunk/libavformat: avformat.h utils.c

nicodvb subversion
Sun Aug 27 14:21:20 CEST 2006


Author: nicodvb
Date: Sun Aug 27 14:21:19 2006
New Revision: 6109

Modified:
   trunk/libavformat/avformat.h
   trunk/libavformat/utils.c

Log:
added option probesize; at the moment only used by mpegts.c

Modified: trunk/libavformat/avformat.h
==============================================================================
--- trunk/libavformat/avformat.h	(original)
+++ trunk/libavformat/avformat.h	Sun Aug 27 14:21:19 2006
@@ -341,6 +341,8 @@
 #define AVFMT_FLAG_GENPTS       0x0001 ///< generate pts if missing even if it requires parsing future frames
 
     int loop_input;
+    /* decoding: size of data to probe; encoding unused */
+    unsigned int probesize;
 } AVFormatContext;
 
 typedef struct AVPacketList {

Modified: trunk/libavformat/utils.c
==============================================================================
--- trunk/libavformat/utils.c	(original)
+++ trunk/libavformat/utils.c	Sun Aug 27 14:21:19 2006
@@ -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)




More information about the ffmpeg-cvslog mailing list