[FFmpeg-devel] [PATCH 1/2] avformat/hlsenc: fix the duration of m4s segment is unusually smaller than expected.

Liu Steven lq at chinaffmpeg.org
Tue Oct 9 10:17:26 EEST 2018



> 在 2018年10月9日,下午2:56,Charles Liu <liuchh83 at gmail.com> 写道:
> 
> In fmp4 mode, the duration of the second m4s segment is unusually smaller than the expected segment time.
> 
> Signed-off-by: Charles Liu <liuchh83 at gmail.com>
> ---
> libavformat/hlsenc.c | 4 ----
> 1 file changed, 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--;
> -        }

No, this is reserve, will be used by byterange mode
> -
>         if (hls->segment_type == SEGMENT_TYPE_FMP4) {
>             if (hls->flags & HLS_SINGLE_FILE) {
>                 ret = flush_dynbuf(vs, &range_length);
> -- 
> 2.19.1
> 
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-devel





More information about the ffmpeg-devel mailing list