diff options.c @ 5613:529c473fe20e libavformat

Flag to ignore dts on frames that contain pts. This works around common issues with mpeg-ps files with broken timestamps. Also allows playing the broken sample from issue1024.
author michael
date Sat, 30 Jan 2010 22:55:12 +0000
parents ce002ddccf1b
children ae90b07a6f29
line wrap: on
line diff
--- a/options.c	Sat Jan 30 22:05:26 2010 +0000
+++ b/options.c	Sat Jan 30 22:55:12 2010 +0000
@@ -46,6 +46,7 @@
 {"fflags", NULL, OFFSET(flags), FF_OPT_TYPE_FLAGS, DEFAULT, INT_MIN, INT_MAX, D|E, "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"},
+{"igndts", "ingore dts", 0, FF_OPT_TYPE_CONST, AVFMT_FLAG_IGNDTS, INT_MIN, INT_MAX, D, "fflags"},
 #if LIBAVFORMAT_VERSION_INT < (53<<16)
 {"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},