You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
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>
This commit is contained in:
@@ -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->segment_type == SEGMENT_TYPE_FMP4) {
|
||||||
if (hls->flags & HLS_SINGLE_FILE) {
|
if (hls->flags & HLS_SINGLE_FILE) {
|
||||||
ret = flush_dynbuf(vs, &range_length);
|
ret = flush_dynbuf(vs, &range_length);
|
||||||
|
Reference in New Issue
Block a user