diff options
author | Charles Liu <liuchh83@gmail.com> | 2018-10-30 11:07:14 +0800 |
---|---|---|
committer | Steven Liu <lq@chinaffmpeg.org> | 2018-10-30 11:07:14 +0800 |
commit | 3d1b7954933b17fc8ff5204e231f63fcb7ff63a9 (patch) | |
tree | 8b61e75ceed37681ce0d8829689ad9dd83475907 /libavformat | |
parent | 78862488f85207633f29f5a66e42364024a14c3f (diff) | |
download | ffmpeg-3d1b7954933b17fc8ff5204e231f63fcb7ff63a9.tar.gz |
avformat/hlsenc: fix the duration of m4s segment is unusually smaller than expected.
In fmp4 mode, the duration of the second m4s segment is
unusually smaller than the expected segment time.
Signed-off-by: Charles Liu <liuchh83@gmail.com>
Signed-off-by: Steven Liu <lq@chinaffmpeg.org>
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/hlsenc.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/libavformat/hlsenc.c b/libavformat/hlsenc.c index 28c2dd62fc..3ccd8756f6 100644 --- a/libavformat/hlsenc.c +++ b/libavformat/hlsenc.c @@ -2233,10 +2233,6 @@ static int hls_write_packet(AVFormatContext *s, AVPacket *pkt) } } - if (vs->fmp4_init_mode) { - vs->number--; - } - if (hls->segment_type == SEGMENT_TYPE_FMP4) { if (hls->flags & HLS_SINGLE_FILE) { ret = flush_dynbuf(vs, &range_length); |