and get the current sequence number after refresh playlist Signed-off-by: Steven Liu <l...@chinaffmpeg.org> --- libavformat/dashdec.c | 2 ++ 1 file changed, 2 insertions(+)
diff --git a/libavformat/dashdec.c b/libavformat/dashdec.c index 9364718c15..aa9f1726c9 100644 --- a/libavformat/dashdec.c +++ b/libavformat/dashdec.c @@ -1065,6 +1065,7 @@ static int parse_manifest_representation(AVFormatContext *s, const char *url, av_log(s, AV_LOG_VERBOSE, "Ignoring invalid frame rate '%s'\n", rep_framerate_val); } + rep->parent = s; switch (type) { case AVMEDIA_TYPE_VIDEO: rep->rep_idx = video_rep_idx; @@ -1614,6 +1615,7 @@ static struct fragment *get_current_fragment(struct representation *pls) return seg; } else if (c->is_live) { refresh_manifest(pls->parent); + pls->cur_seq_no = calc_cur_seg_no(pls->parent, pls); } else { break; } -- 2.17.2 (Apple Git-113) _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".