diff options
author | Derek Buitenhuis <derek.buitenhuis@gmail.com> | 2015-10-16 22:09:19 +0300 |
---|---|---|
committer | Derek Buitenhuis <derek.buitenhuis@gmail.com> | 2015-10-17 22:02:06 +0300 |
commit | 516d34de424f3ad9720669ac7be22f7537f696b6 (patch) | |
tree | b8dd1f7365edfe7acf373b48473ed41ac3922e0d | |
parent | c37d2cd01cd69c6ab5595c2eac1fd4646fd15505 (diff) |
mpegts: Make the pat_period a double
Having it as a float didn't even allow enough precision to check
for INT_MAX/2.
Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
-rw-r--r-- | libavformat/mpegtsenc.c | 4 | ||||
-rw-r--r-- | libavformat/version.h | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/libavformat/mpegtsenc.c b/libavformat/mpegtsenc.c index 45bab1ce01..6c51c94fe5 100644 --- a/libavformat/mpegtsenc.c +++ b/libavformat/mpegtsenc.c @@ -102,7 +102,7 @@ typedef struct MpegTSWrite { int flags; int copyts; int tables_version; - float pat_period; + double pat_period; float sdt_period; int64_t last_pat_ts; int64_t last_sdt_ts; @@ -1555,7 +1555,7 @@ static const AVOption options[] = { offsetof(MpegTSWrite, pcr_period), AV_OPT_TYPE_INT, { .i64 = PCR_RETRANS_TIME }, 0, INT_MAX, AV_OPT_FLAG_ENCODING_PARAM }, { "pat_period", "PAT/PMT retransmission time limit in seconds", - offsetof(MpegTSWrite, pat_period), AV_OPT_TYPE_FLOAT, + offsetof(MpegTSWrite, pat_period), AV_OPT_TYPE_DOUBLE, { .dbl = INT_MAX }, 0, INT_MAX, AV_OPT_FLAG_ENCODING_PARAM }, { "sdt_period", "SDT retransmission time limit in seconds", offsetof(MpegTSWrite, sdt_period), AV_OPT_TYPE_FLOAT, diff --git a/libavformat/version.h b/libavformat/version.h index 5ded9780c7..3b316f87c7 100644 --- a/libavformat/version.h +++ b/libavformat/version.h @@ -31,7 +31,7 @@ #define LIBAVFORMAT_VERSION_MAJOR 57 #define LIBAVFORMAT_VERSION_MINOR 8 -#define LIBAVFORMAT_VERSION_MICRO 100 +#define LIBAVFORMAT_VERSION_MICRO 101 #define LIBAVFORMAT_VERSION_INT AV_VERSION_INT(LIBAVFORMAT_VERSION_MAJOR, \ LIBAVFORMAT_VERSION_MINOR, \ |