mirror of
https://gitee.com/openharmony/third_party_ffmpeg
synced 2024-11-24 19:59:46 +00:00
Merge commit '7266e24f176389d2e81bfc7c829934f7c8ae361c'
* commit '7266e24f176389d2e81bfc7c829934f7c8ae361c': hls: Sync the file number with the start sequence Conflicts: libavformat/hlsenc.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
commit
554a1ecab7
@ -174,7 +174,7 @@ static int hls_start(AVFormatContext *s)
|
||||
int err = 0;
|
||||
|
||||
if (av_get_frame_filename(oc->filename, sizeof(oc->filename),
|
||||
c->basename, c->wrap ? c->number % c->wrap : c->number) < 0) {
|
||||
c->basename, c->wrap ? c->sequence % c->wrap : c->sequence) < 0) {
|
||||
av_log(oc, AV_LOG_ERROR, "Invalid segment filename template '%s'\n", c->basename);
|
||||
return AVERROR(EINVAL);
|
||||
}
|
||||
@ -198,9 +198,6 @@ static int hls_write_header(AVFormatContext *s)
|
||||
const char *pattern = "%d.ts";
|
||||
int basename_size = strlen(s->filename) + strlen(pattern) + 1;
|
||||
|
||||
hls->number = 0;
|
||||
|
||||
|
||||
hls->sequence = hls->start_sequence;
|
||||
hls->recording_time = hls->time * AV_TIME_BASE;
|
||||
hls->start_pts = AV_NOPTS_VALUE;
|
||||
|
Loading…
Reference in New Issue
Block a user