[Ffmpeg-cvslog] r6177 - in trunk: ffmpeg.c libavformat/avformat.h libavformat/avidec.c libavformat/utils.c
michael
subversion
Tue Sep 5 21:23:33 CEST 2006
Author: michael
Date: Tue Sep 5 21:23:32 2006
New Revision: 6177
Modified:
trunk/ffmpeg.c
trunk/libavformat/avformat.h
trunk/libavformat/avidec.c
trunk/libavformat/utils.c
Log:
ignore index parameter to ignore the ODML index in avi
Modified: trunk/ffmpeg.c
==============================================================================
--- trunk/ffmpeg.c (original)
+++ trunk/ffmpeg.c Tue Sep 5 21:23:32 2006
@@ -162,7 +162,6 @@
static int frame_skip_exp= 0;
static int loop_input = 0;
static int loop_output = AVFMT_NOOUTPUTLOOP;
-static int genpts = 0;
static int qp_hist = 0;
static int gop_size = 12;
@@ -2816,9 +2815,6 @@
ic->loop_input = loop_input;
- if(genpts)
- ic->flags|= AVFMT_FLAG_GENPTS;
-
/* If not enough info to get the stream parameters, we decode the
first frames to get it. (used in mpeg case for example) */
ret = av_find_stream_info(ic);
@@ -4080,7 +4076,6 @@
{ "skip_factor", OPT_INT | HAS_ARG | OPT_EXPERT | OPT_VIDEO, {(void*)&frame_skip_factor}, "frame skip factor", "factor" },
{ "skip_exp", OPT_INT | HAS_ARG | OPT_EXPERT | OPT_VIDEO, {(void*)&frame_skip_exp}, "frame skip exponent", "exponent" },
{ "newvideo", OPT_VIDEO, {(void*)opt_new_video_stream}, "add a new video stream to the current output stream" },
- { "genpts", OPT_BOOL | OPT_EXPERT | OPT_VIDEO, { (void *)&genpts }, "generate pts" },
{ "qphist", OPT_BOOL | OPT_EXPERT | OPT_VIDEO, { (void *)&qp_hist }, "show QP histogram" },
/* audio options */
Modified: trunk/libavformat/avformat.h
==============================================================================
--- trunk/libavformat/avformat.h (original)
+++ trunk/libavformat/avformat.h Tue Sep 5 21:23:32 2006
@@ -342,6 +342,7 @@
int flags;
#define AVFMT_FLAG_GENPTS 0x0001 ///< generate pts if missing even if it requires parsing future frames
+#define AVFMT_FLAG_IGNIDX 0x0002 ///< ignore index
int loop_input;
/* decoding: size of data to probe; encoding unused */
Modified: trunk/libavformat/avidec.c
==============================================================================
--- trunk/libavformat/avidec.c (original)
+++ trunk/libavformat/avidec.c Tue Sep 5 21:23:32 2006
@@ -456,7 +456,7 @@
break;
case MKTAG('i', 'n', 'd', 'x'):
i= url_ftell(pb);
- if(!url_is_streamed(pb)){
+ if(!url_is_streamed(pb) && !(s->flags & AVFMT_FLAG_IGNIDX)){
read_braindead_odml_indx(s, 0);
}
url_fseek(pb, i+size, SEEK_SET);
Modified: trunk/libavformat/utils.c
==============================================================================
--- trunk/libavformat/utils.c (original)
+++ trunk/libavformat/utils.c Tue Sep 5 21:23:32 2006
@@ -466,6 +466,9 @@
static const AVOption options[]={
{"probesize", NULL, OFFSET(probesize), FF_OPT_TYPE_INT, DEFAULT, 32, INT_MAX, D},
+{"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"},
{NULL},
};
More information about the ffmpeg-cvslog
mailing list