summaryrefslogtreecommitdiff
path: root/libavformat/webvttdec.c
Commit message (Collapse)AuthorAge
* avformat/webvttdec: Dont skip over a never checked byte after -->Michael Niedermayer2014-01-07
| | | | | | | Fixes use of uninitialized memory Fixes: msan_uninit-mem_7f49667d83db_3396_WebVTT_capability_tester.vtt Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* lavf/webvttdec: use private option to specify WebVTT kindMatthew Heaney2013-06-25
| | | | | | | | | | | | | | | WebVTT subtitle tracks have four kinds. Certain downstream muxers (such as for WebM) need to know which WebVTT kind this is, in order to specify the codec id of the output track. A new private input option, "-kind", has been added to the WebVTT demuxer. It accepts as a value any of "subtitles" (the default), "captions", "descriptions", and "metadata". The kind option value is used to assign a value to the stream disposition flag, to which four new values have been added, corresponding the four WebVTT kinds. Signed-off-by: Matthew Heaney <matthewjheaney@google.com> Signed-off-by: Clément Bœsch <ubitux@gmail.com>
* lavf/webvttdec: factorize identifier and settings side data code.Clément Bœsch2013-06-01
|
* lavf/webvttdec: save cue id and settings as side dataMatthew Heaney2013-06-01
| | | | | | | | | | | | | | | | | | | | | | Currently the WebVTT demuxer parses the cues but throws away the cue id (the optional first line of the cue) and cue settings (the optional rendering instructions that follow the timestamp). However, in order to write inband text tracks (to WebM files), the entire cue payload from the WebVTT source must be preserved. This commit makes no change to the data part of the output buffer packet (where the actual cue text is stored), but does add the cue id and settings as a side data items, if they're present in the cue. Existing code that cares only about the data part of the packet can continue to ignore the side data. There are two new packet data type flags, AV_PKT_DATA_WEBVTT_IDENTIFIER and AV_PKT_DATA_WEBVTT_SETTINGS.
* lavf/webvtt: use ff_subtitles_read_chunk().Clément Bœsch2013-01-03
| | | | | The FATE test is updated because the line breaks in the dialogue rectangles are now proper CRLF.
* lavf: remove generic index flag from text subtitles.Clément Bœsch2013-01-02
| | | | This flag is not necessary.
* lavf: use ff_subtitles_queue_seek() for text subtitles demuxers.Clément Bœsch2012-12-02
|
* lavf/webvttdec: fix potential timing overflows.Clément Bœsch2012-10-21
| | | | Should fix CID733781 and CID733782.
* WebVTT demuxer and decoder.Clément Bœsch2012-09-23