You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-10 06:10:52 +02:00
avformat/dashenc: Skip writing trailer for MP4 output when in streaming mode
In streaming mode mp4 trailer is not required for playout.
This commit is contained in:
@@ -1210,7 +1210,7 @@ static int dash_init(AVFormatContext *s)
|
|||||||
|
|
||||||
if (os->segment_type == SEGMENT_TYPE_MP4) {
|
if (os->segment_type == SEGMENT_TYPE_MP4) {
|
||||||
if (c->streaming)
|
if (c->streaming)
|
||||||
av_dict_set(&opts, "movflags", "frag_every_frame+dash+delay_moov+skip_sidx", 0);
|
av_dict_set(&opts, "movflags", "frag_every_frame+dash+delay_moov+skip_sidx+skip_trailer", 0);
|
||||||
else
|
else
|
||||||
av_dict_set(&opts, "movflags", "frag_custom+dash+delay_moov", 0);
|
av_dict_set(&opts, "movflags", "frag_custom+dash+delay_moov", 0);
|
||||||
} else {
|
} else {
|
||||||
|
Reference in New Issue
Block a user