Commit c96a9636 authored by James Almer's avatar James Almer

avformat/dashenc: allow setting custom movflags using format_options

Signed-off-by: 's avatarJames Almer <jamrial@gmail.com>
parent cc929cee
...@@ -1507,12 +1507,12 @@ static int dash_init(AVFormatContext *s) ...@@ -1507,12 +1507,12 @@ static int dash_init(AVFormatContext *s)
if (c->streaming) if (c->streaming)
// skip_sidx : Reduce bitrate overhead // skip_sidx : Reduce bitrate overhead
// skip_trailer : Avoids growing memory usage with time // 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 { else {
if (c->global_sidx) 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 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) if (os->frag_type == FRAG_TYPE_EVERY_FRAME)
av_dict_set(&opts, "movflags", "+frag_every_frame", AV_DICT_APPEND); av_dict_set(&opts, "movflags", "+frag_every_frame", AV_DICT_APPEND);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment