[FFmpeg-devel] [PATCH] libavformat/dashenc.c:keep same with streaming , when live end

Siyuan Huang saber.huang at samsung.com
Fri May 29 10:19:19 EEST 2020


sidx box is used for single file cases , should not apply to streaming/live
case

 

Signed-off-by: SiyuanHuang <saber.huang at samsung.com>

---

libavformat/dashenc.c | 2 +-

1 file changed, 1 insertion(+), 1 deletion(-)

 

diff --git a/libavformat/dashenc.c b/libavformat/dashenc.c

index df081ce3ef..2b2a77267b 100755

--- a/libavformat/dashenc.c

+++ b/libavformat/dashenc.c

@@ -1616,7 +1616,7 @@ static int dash_init(AVFormatContext *s)

                 if (c->global_sidx)

                     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", AV_DICT_APPEND);

+                    av_dict_set(&opts, "movflags",
"+dash+delay_moov+skip_sidx+skip_trailer", AV_DICT_APPEND);

             }

             if (os->frag_type == FRAG_TYPE_EVERY_FRAME)

                 av_dict_set(&opts, "movflags", "+frag_every_frame",
AV_DICT_APPEND);

-- 

2.17.1

 



More information about the ffmpeg-devel mailing list