diff options
author | James Almer <jamrial@gmail.com> | 2019-11-20 09:25:09 -0300 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2020-01-15 23:34:21 -0300 |
commit | c96a9636c8efd3fd51b696c29a76af8c4d77a729 (patch) | |
tree | da504b6a345259990e212a040cacffc9a4b4b535 /libavformat/dashenc.c | |
parent | cc929cee76e59f01494208e9fbbf4050b7bc6089 (diff) | |
download | ffmpeg-c96a9636c8efd3fd51b696c29a76af8c4d77a729.tar.gz |
avformat/dashenc: allow setting custom movflags using format_options
Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavformat/dashenc.c')
-rw-r--r-- | libavformat/dashenc.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libavformat/dashenc.c b/libavformat/dashenc.c index 70b2b37b05..2b86a781bc 100644 --- a/libavformat/dashenc.c +++ b/libavformat/dashenc.c @@ -1507,12 +1507,12 @@ static int dash_init(AVFormatContext *s) if (c->streaming) // skip_sidx : Reduce bitrate overhead // skip_trailer : Avoids growing memory usage with time - av_dict_set(&opts, "movflags", "dash+delay_moov+skip_sidx+skip_trailer", 0); + av_dict_set(&opts, "movflags", "+dash+delay_moov+skip_sidx+skip_trailer", AV_DICT_APPEND); else { if (c->global_sidx) - av_dict_set(&opts, "movflags", "dash+delay_moov+global_sidx+skip_trailer", 0); + av_dict_set(&opts, "movflags", "+dash+delay_moov+global_sidx+skip_trailer", AV_DICT_APPEND); else - av_dict_set(&opts, "movflags", "dash+delay_moov+skip_trailer", 0); + av_dict_set(&opts, "movflags", "+dash+delay_moov+skip_trailer", AV_DICT_APPEND); } if (os->frag_type == FRAG_TYPE_EVERY_FRAME) av_dict_set(&opts, "movflags", "+frag_every_frame", AV_DICT_APPEND); |