ffmpeg/tests/fate
Clément Bœsch 77eeaa2c3d lavf/srtdec: rewrite parsing logic
Fixes Ticket #5032

The samples in Ticket #5032 is using \r\r\n as line breaks.  Since we
already are handling \r, or \n, or \r\n as line breaks, \r\n\n will be
considered as a double line breaks. This is an issue because
ff_subtitles_read_text_chunk() will as a result stop extracting a chunk
after just one line.

So instead of parsing the SRT by "chunks" (which means splitting every
double LB), this new parser is detecting timing lines, and split the
events on this basis. While this sounds safe and simple, it needs to
take into account the event number preceding the timing line while
handling situations such as:

 - event number starting at 0 or actually any number instead of 1
 - event numbers not being ordered at all
 - event number being followed by text garbage (this really happened,
   see Ticket #4898)
 - event payload containing one or multiple number (a protagonist saying
   a count-down, a date or whatever) which could be confused with a
   chapter number
 - event number being empty (see Ticket #2167)
 - all kind of weird line breaks can appear randomly like wild pokémons
 - untrustable line breaks (Ticket #5032)

The sample madness.srt tries to sum up most of this into one sample,
ticket5032-rrn.srt is the file containing \r\r\n line breaks. and
empty-events-2167.srt contains empty events.
2016-01-01 18:31:49 +01:00
..
aac.mak fate: increase FUZZ by 1 for aac-tns-encode 2015-12-13 23:28:53 +01:00
ac3.mak fate: replace deprecated request_channels with request_channel_layout 2015-08-22 19:16:13 +02:00
acodec.mak fate: explicitly specify audio bitrate for adpcm/mp2fixed tests. 2015-08-17 18:13:03 -04:00
adpcm.mak
alac.mak
als.mak
amrnb.mak
amrwb.mak
api.mak fate/api-jpeg-codec-param: rename to api-mjpeg-codec-param 2015-12-08 20:43:20 +01:00
atrac.mak avcodec/atrac1: fix decoder: QMF delay compensation should be 39 samples 2015-11-21 11:38:45 +01:00
audio.mak
avformat.mak tests/fate/avformat: Fix fate-lavf 2015-11-10 04:53:47 +01:00
bmp.mak
cdxl.mak
checkasm.mak
concatdec.mak fate: fix concat demuxer tests on msys/cygwin by using relative paths 2015-11-16 11:05:19 +01:00
cover-art.mak
demux.mak
dfa.mak
dnxhd.mak fate: add DNxHD/HR tests 2015-10-09 22:36:05 +02:00
dpcm.mak
ea.mak
exif.mak
ffmpeg.mak fate: add limited_input_seek tests 2015-12-07 10:39:17 +01:00
ffprobe.mak fate: use PROGSSUF 2015-10-16 14:02:12 +02:00
fft.mak
filter-audio.mak fate: use 'c' for setting the channel_layout 2015-08-31 13:49:46 +02:00
filter-video.mak fate: add mpdecimate test. 2015-11-07 16:03:47 +01:00
flac.mak
gapless.mak
gif.mak
h264.mak
hevc.mak
image.mak Merge commit '823fa7004571cb8404ca5785f9fa6e85f0f9f3d3' 2015-11-29 16:00:54 +01:00
indeo.mak
libavcodec.mak
libavdevice.mak
libavformat.mak Merge commit '59e8ec0aa8ab174701d01a3bfe96fedd0b7fcead' 2015-11-16 16:19:27 +00:00
libavresample.mak
libavutil.mak Add support for TEA (Tiny Encryption Algorithm) 2015-07-21 23:10:44 +02:00
libswresample.mak swresample/resample: increase precision for compensation 2015-11-11 18:17:18 +01:00
lossless-audio.mak
lossless-video.mak
microsoft.mak Merge commit 'faa3f17a76333b672ce4a40cf80f678ab68bdbae' 2015-08-24 10:25:41 +02:00
monkeysaudio.mak
mp3.mak tests/fate/mp3: increase mp3-float-extra_overread FUZZ for ppc64be-RHEL7.0-gcc-4.8.2-ibmcrl to 23 from 20 2015-08-07 02:54:59 +02:00
mpc.mak
mpeg4.mak fate: add -fflags +bitexact to the relevant targets 2015-08-30 23:31:10 +02:00
mxf.mak
opus.mak
pcm.mak tests/fate: replace all -f md5 by framemd5 2015-09-06 03:23:02 +02:00
probe.mak fate: use PROGSSUF 2015-10-16 14:02:12 +02:00
prores.mak
qt.mak
qtrle.mak
real.mak
screen.mak Merge commit '533a6198505edd1379e1cd722852350ae4a85acc' 2015-10-27 13:58:44 +01:00
seek.mak avformat/mp3dec: prefer "fast_seek" to TOC seek for CBR files. 2015-12-02 11:02:27 +01:00
source-check.sh fate: Add basic license header check 2015-09-29 18:52:35 +02:00
source.mak fate: Add basic license header check 2015-09-29 18:52:35 +02:00
subtitles.mak lavf/srtdec: rewrite parsing logic 2016-01-01 18:31:49 +01:00
utvideo.mak
vcodec.mak fate: add 10bits YUV4:2:2 dnxhd test 2015-10-13 04:04:02 +02:00
video.mak lavc/cdg: Add transparency support. 2015-10-30 01:24:50 +01:00
voice.mak tests/fate: replace all -f md5 by framemd5 2015-09-06 03:23:02 +02:00
vorbis.mak
vpx.mak fate: use PROGSSUF 2015-10-16 14:02:12 +02:00
vqf.mak fate: add -fflags +bitexact to the relevant targets 2015-08-30 23:31:10 +02:00
wavpack.mak libavformat/matroska: Write stream durations in metadata, in the format of mkvmerge. 2015-08-05 22:29:23 +02:00
wma.mak
xvid.mak