diff options
author | Martin Storsjö <martin@martin.st> | 2010-05-21 21:44:43 +0000 |
---|---|---|
committer | Martin Storsjö <martin@martin.st> | 2010-05-21 21:44:43 +0000 |
commit | ed2b1f80fa32bb2f71c6f6ed71d7a0013e26a5c1 (patch) | |
tree | 6025bac2a7ce88f6b20fcfe7a0abb8f02f6d3d8b | |
parent | 3d24c2ce026d1d3080124b5af1c067eb635c0bb5 (diff) | |
download | ffmpeg-ed2b1f80fa32bb2f71c6f6ed71d7a0013e26a5c1.tar.gz |
Add a flag for enabling RTP hinting
backport r23161 by mstorsjo
Originally committed as revision 23234 to svn://svn.ffmpeg.org/ffmpeg/branches/0.6
-rw-r--r-- | libavformat/avformat.h | 1 | ||||
-rw-r--r-- | libavformat/options.c | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/libavformat/avformat.h b/libavformat/avformat.h index 9928e84dad..cd164a3d73 100644 --- a/libavformat/avformat.h +++ b/libavformat/avformat.h @@ -653,6 +653,7 @@ typedef struct AVFormatContext { #define AVFMT_FLAG_IGNDTS 0x0008 ///< Ignore DTS on frames that contain both DTS & PTS #define AVFMT_FLAG_NOFILLIN 0x0010 ///< Do not infer any values from other values, just return what is stored in the container #define AVFMT_FLAG_NOPARSE 0x0020 ///< Do not use AVParsers, you also must set AVFMT_FLAG_NOFILLIN as the fillin code works on frames and no parsing -> no frames. Also seeking to frames can not work if parsing to find frame boundaries has been disabled +#define AVFMT_FLAG_RTP_HINT 0x0040 ///< Add RTP hinting to the output file int loop_input; /** decoding: size of data to probe; encoding: unused. */ diff --git a/libavformat/options.c b/libavformat/options.c index 85d793ec09..0c1ac2d866 100644 --- a/libavformat/options.c +++ b/libavformat/options.c @@ -49,6 +49,7 @@ static const AVOption options[]={ {"nofillin", "do not fill in missing values that can be exactly calculated", 0, FF_OPT_TYPE_CONST, AVFMT_FLAG_NOFILLIN, INT_MIN, INT_MAX, D, "fflags"}, {"noparse", "disable AVParsers, this needs nofillin too", 0, FF_OPT_TYPE_CONST, AVFMT_FLAG_NOPARSE, INT_MIN, INT_MAX, D, "fflags"}, {"igndts", "ingore dts", 0, FF_OPT_TYPE_CONST, AVFMT_FLAG_IGNDTS, INT_MIN, INT_MAX, D, "fflags"}, +{"rtphint", "add rtp hinting", 0, FF_OPT_TYPE_CONST, AVFMT_FLAG_RTP_HINT, INT_MIN, INT_MAX, E, "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}, |