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 Merge remote-tracking branch 'qatar/master' 2014-04-06 23:43:02 +02:00
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 Merge commit 'acbe15a99f158dbb0edb837fb6557171dc4376d4' 2015-03-15 22:20:15 +01:00
avformat.mak tests/fate/avformat: Fix fate-lavf 2015-11-10 04:53:47 +01:00
bmp.mak
cdxl.mak
checkasm.mak fate: add checkasm target 2015-07-18 01:06:45 +02:00
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 fate: test ea vp6 with alpha stream 2015-06-26 14:39:11 +02:00
dfa.mak
dnxhd.mak fate: add DNxHD/HR tests 2015-10-09 22:36:05 +02:00
dpcm.mak
ea.mak
exif.mak fate: add WebP Exif metadata test 2014-01-15 21:20:47 +01:00
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 Merge commit '24f45c16224d4c5d482e928676714766ffdda4fc' 2014-06-27 02:36:45 +02:00
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 avcodec/flacenc: Regression test for ticket #4628 2015-06-17 22:47:17 +02:00
gapless.mak fate: gapless: remove useless tests 2015-04-22 19:28:07 +02:00
gif.mak Fix TARGET_SAMPLES and TARGET_PATH for some fate tests. 2014-03-18 01:29:50 +01:00
h264.mak Merge commit '819bb3e81c72939ae1c1a4e5fc3dfdf3e98df074' 2014-07-21 02:27:28 +02:00
hevc.mak tests/fate/hevc: Use a bitexact scaler in the hevc param change test to avoid failing on non x86 2015-04-03 22:48:33 +02:00
image.mak Merge commit '823fa7004571cb8404ca5785f9fa6e85f0f9f3d3' 2015-11-29 16:00:54 +01:00
indeo.mak
libavcodec.mak fate/api-tests: Move api-flac-test to API tests directory. 2015-06-27 03:43:23 +02:00
libavdevice.mak
libavformat.mak Merge commit '59e8ec0aa8ab174701d01a3bfe96fedd0b7fcead' 2015-11-16 16:19:27 +00:00
libavresample.mak Merge commit 'c060d046aa2f89c0e601a2dcfbce53f0e36cf498' 2015-06-21 20:55:23 +02:00
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 Merge commit 'd3ea79e8a65ddad4da11813bb43c46701295f68c' 2015-06-28 11:41:23 +02:00
lossless-video.mak Merge commit 'fcda30f2dcb744d89df9d5d1ec89ba55279cb83c' 2015-04-20 05:19:03 +02:00
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 tests/fate: added mxf tests for essencegroups and missing index 2015-01-28 05:45:32 +01:00
opus.mak fate: Use the correct, local path to samples for opus reference files 2014-07-14 22:12:28 +03:00
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 Merge commit 'e21d85309943a51b7808f5e01dd258b262e09148' 2015-02-15 20:25:31 +01:00
qtrle.mak
real.mak Merge commit '28f5cd312c9da9072108edf8b7685d009374ea96' 2014-09-25 13:37:40 +02:00
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 utvideoenc: Enable support for multiple slices and use them 2014-02-14 21:38:00 +01:00
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 tests/fate/wma: use the existing reference files for wmapro tests 2015-06-28 11:58:57 +02:00
xvid.mak xvid: Add C IDCT 2014-09-02 14:41:13 -07:00