Re: [FFmpeg-devel] [PATCH v1] avformat/movenc: split empty text sample when duration overflow

2019-09-07 Thread Jan Ekström
Hi, On Sun, Sep 8, 2019 at 12:28 AM Jun Li wrote: > Some details: > Current implementation will insert one empty sample whenever there is a gap > between two captions lines. But when the gap's duration is way too big, the > sample's duration will exceed MP4's limitation, thus mov muxer will fail

Re: [FFmpeg-devel] [PATCH v1] avformat/movenc: split empty text sample when duration overflow

2019-09-07 Thread Jun Li
On Fri, Sep 6, 2019 at 4:10 PM Jun Li wrote: > Fix #7637 > One empty/end sample is created and inserted between two caption lines > when there is a gap. > This patch is to split the sample into multiple ones when its duration is > too long (>= INT_MAX). > --- > libavformat/movenc.c | 24

[FFmpeg-devel] [PATCH v1] avformat/movenc: split empty text sample when duration overflow

2019-09-06 Thread Jun Li
Fix #7637 One empty/end sample is created and inserted between two caption lines when there is a gap. This patch is to split the sample into multiple ones when its duration is too long (>= INT_MAX). --- libavformat/movenc.c | 24 ++-- 1 file changed, 18 insertions(+), 6 delet