History

lavf/mux: do not apply max_interleave_delta to subtitles

It is common for subtitle streams to have large gaps between packets. When the caller is interleaving packets from multiple files, it can easily happen that two successive subtitle packets trigger this limit, even though no excessive buffering is happening. Should fix #7064

Anton Khirnov committed 3 years ago

Commit de858151 parent 436b9721 file · +1 −1Browse files

Showing the changes to libavformat (1 of 1 file). Show all

Unified · Split

libavformat/mux.c+1−1
@@ -995,7 +995,7 @@ int ff_interleave_packet_per_dts(AVFormatContext *s, AVPacket *pkt, · 994 unmodified lines
995995 const PacketListEntry *const last = sti->last_in_packet_buffer;
996996 int64_t last_dts;
997997
998− if (!last)
998+ if (!last || st->codecpar->codec_type == AVMEDIA_TYPE_SUBTITLE)
999999 continue;
10001000
10011001 last_dts = av_rescale_q(last->pkt.dts,

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t