ffmpeg/tests/ref
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
..
acodec libavformat/matroska: Write stream durations in metadata, in the format of mkvmerge. 2015-08-05 22:29:23 +02:00
fate lavf/srtdec: rewrite parsing logic 2016-01-01 18:31:49 +01:00
lavf Merge commit '99f40fd02f1870c2dee70977b672da9cb198f0be' 2015-11-29 15:42:33 +01:00
lavf-fate Merge commit 'ef363ebd596da18f889a7d4845023a23dfac84c9' 2014-10-24 15:30:12 +02:00
seek Merge commit '99f40fd02f1870c2dee70977b672da9cb198f0be' 2015-11-29 15:42:33 +01:00
vsynth fate: add 10bits YUV4:2:2 dnxhd test 2015-10-13 04:04:02 +02:00
vsynth1
vsynth_lena tests: Rename vsynth2 to vsynth_lena 2014-12-02 03:02:30 +01:00