summaryrefslogtreecommitdiff
path: root/libavformat
diff options
context:
space:
mode:
authorMarton Balint <cus@passwd.hu>2019-12-23 01:36:41 +0100
committerMarton Balint <cus@passwd.hu>2020-02-05 21:27:30 +0100
commita8a05340de722f0b637b2aee6037bad3bc682bea (patch)
tree2c39488fb2e28145f5661532f5fdf3b24cd7a965 /libavformat
parentb4f300f8ea209b861865ef495b298a88b48f3913 (diff)
avformat/hlsenc: allow a custom SDT and PAT period
The default is not to write SDT and PAT periodically, only in the beginning of every segment. After this patch the user might override this if needed. Signed-off-by: Marton Balint <cus@passwd.hu>
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/hlsenc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavformat/hlsenc.c b/libavformat/hlsenc.c
index 87b861d437..f6dd894343 100644
--- a/libavformat/hlsenc.c
+++ b/libavformat/hlsenc.c
@@ -861,8 +861,8 @@ static int hls_mux_init(AVFormatContext *s, VariantStream *vs)
/* We only require one PAT/PMT per segment. */
char period[21];
snprintf(period, sizeof(period), "%d", (INT_MAX / 2) - 1);
- av_dict_set(&options, "sdt_period", period, 0);
- av_dict_set(&options, "pat_period", period, 0);
+ av_dict_set(&options, "sdt_period", period, AV_DICT_DONT_OVERWRITE);
+ av_dict_set(&options, "pat_period", period, AV_DICT_DONT_OVERWRITE);
}
ret = avformat_init_output(oc, &options);
remaining_options = av_dict_count(options);