aboutsummaryrefslogtreecommitdiff
path: root/libavformat/mpegtsenc.c
diff options
context:
space:
mode:
authorDerek Buitenhuis2015-10-16 15:09:20 -0400
committerDerek Buitenhuis2015-10-17 15:02:40 -0400
commit4ffdba2418abe25562f7c17a7b62e2588d7a3a5f (patch)
treeab96e7549724065bc9c75f5c97f5debb428175cb /libavformat/mpegtsenc.c
parent516d34de424f3ad9720669ac7be22f7537f696b6 (diff)
mpegts: Make the sdt_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>
Diffstat (limited to 'libavformat/mpegtsenc.c')
-rw-r--r--libavformat/mpegtsenc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavformat/mpegtsenc.c b/libavformat/mpegtsenc.c
index 6c51c94fe5..4d74252f13 100644
--- a/libavformat/mpegtsenc.c
+++ b/libavformat/mpegtsenc.c
@@ -103,7 +103,7 @@ typedef struct MpegTSWrite {
int copyts;
int tables_version;
double pat_period;
- float sdt_period;
+ double sdt_period;
int64_t last_pat_ts;
int64_t last_sdt_ts;
@@ -1558,7 +1558,7 @@ static const AVOption options[] = {
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,
+ offsetof(MpegTSWrite, sdt_period), AV_OPT_TYPE_DOUBLE,
{ .dbl = INT_MAX }, 0, INT_MAX, AV_OPT_FLAG_ENCODING_PARAM },
{ NULL },
};