ffmpeg/libavformat
Clément Bœsch c09acf9882 avformat/subtitles: add a next line jumper and use it.
This fixes a bunch of possible overread in avformat with the idiom p +=
strcspn(p, "\n") + 1 (strcspn() can focus on the trailing '\0' if no
'\n' is found, so the +1 leads to an overread).

Note on lavf/matroskaenc: no extra subtitles.o Makefile dependency is
added because only the header is required for ff_subtitles_next_line().

Note on lavf/mpsubdec: code gets slightly complex to avoid an infinite
loop in the probing since there is no more forced increment.

NOTE:
Code of function ff_subtitles_next_line fixed by Alexander Strasser.

The original code from master did test the wrong character, but was
corrected by a subsequent commit. That commit however is not backported,
so it had to be fixed in this commit for the backport.

Conflicts:
	libavformat/mpl2dec.c

(cherry picked from commit 90fc00a623de44e137fe1601b91356e8cd8bdd54)

Signed-off-by: Alexander Strasser <eclipse7@gmx.net>
2013-09-16 21:39:34 +02:00
..
2012-12-01 00:30:11 +01:00
2012-11-27 10:17:28 +00:00
2012-12-16 10:41:00 +00:00
2013-01-22 20:27:05 +01:00
2013-02-09 20:50:11 +01:00
2012-12-30 23:37:14 +01:00
2013-03-05 22:29:57 +01:00
2012-11-11 22:58:56 +01:00
2012-12-04 11:25:46 +00:00
2012-12-04 11:25:46 +00:00
2012-12-04 11:25:46 +00:00
2013-01-30 22:17:52 +00:00
2012-12-05 12:40:57 +00:00
2012-12-16 16:53:01 +01:00
2012-10-26 15:34:25 +00:00
2012-11-12 10:33:18 -05:00
2012-11-24 15:04:32 +00:00
2012-10-18 00:55:03 +02:00
2012-11-19 10:19:50 +01:00
2013-02-22 13:52:43 +00:00
2012-11-21 16:39:44 +00:00
2013-01-01 19:29:04 +01:00
2012-10-10 15:50:32 +00:00
2012-12-05 20:18:04 +00:00
2013-01-24 15:02:44 +00:00
2012-12-05 13:01:22 +00:00
2012-11-08 15:54:14 +01:00
2012-11-27 13:24:00 +01:00
2013-01-24 15:02:44 +00:00
2013-03-07 13:42:12 +01:00
2012-12-21 00:18:34 +01:00
2013-06-21 01:11:56 +02:00
2013-01-25 00:04:22 +01:00
2012-12-05 13:01:22 +00:00
2012-12-05 13:01:22 +00:00
2013-01-07 11:43:20 +00:00
2013-01-17 04:55:14 +01:00
2012-10-25 20:57:40 +00:00
2013-02-21 22:24:26 +01:00
2013-02-21 00:59:32 +01:00
2011-04-20 04:48:23 +02:00
2013-08-20 18:42:13 +02:00
2013-09-10 21:39:12 +02:00
2013-01-04 20:58:59 +01:00
2013-02-22 13:37:35 +00:00
2012-12-29 18:56:33 +01:00
2012-12-23 21:22:43 +00:00
2013-01-15 20:19:28 +01:00
2012-11-24 10:04:20 +00:00
2013-01-07 11:43:20 +00:00
2012-11-21 15:34:45 +00:00
2012-12-24 02:51:51 +01:00
2012-12-23 16:08:10 +01:00
2012-11-21 09:48:46 +00:00
2013-02-23 17:24:15 +01:00
2012-08-28 22:29:20 +02:00
2012-12-17 01:53:35 +01:00
2012-11-21 23:51:21 +01:00
2012-11-21 10:38:52 +00:00
2012-12-17 13:34:30 +01:00
2013-04-03 15:16:06 +02:00
2012-11-17 19:58:54 +00:00
2012-12-28 21:50:42 +00:00
2012-12-28 21:58:03 +00:00
2013-01-06 18:48:51 +01:00
2013-01-06 18:48:51 +01:00
2013-01-03 07:25:47 +01:00
2012-12-09 22:01:00 +00:00
2013-02-09 20:50:11 +01:00
2012-12-16 10:27:54 +00:00
2012-10-15 08:12:25 +00:00
2012-08-29 00:05:03 +02:00
2012-11-04 04:46:10 +00:00
2013-01-07 10:08:38 +00:00
2013-01-07 10:08:38 +00:00
2013-02-13 17:36:55 +00:00
2012-12-21 00:18:34 +01:00
2012-11-06 15:52:33 +01:00
2013-01-20 20:59:30 +01:00
2013-01-07 23:14:58 +11:00
2012-11-24 10:20:46 +00:00
2012-12-21 00:18:34 +01:00
2013-01-07 13:25:20 +01:00
2012-12-21 21:18:12 +01:00