avformat/hlsenc: fix the duration of m4s segment is unusually smaller than expected.
[ffmpeg.git] / libavformat / hlsenc.c
index 28c2dd6..3ccd875 100644 (file)
@@ -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);