aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/webvttdec.c
diff options
context:
space:
mode:
authorClément Bœsch <ubitux@gmail.com>2012-10-25 00:01:42 +0200
committerClément Bœsch <ubitux@gmail.com>2012-10-25 00:09:36 +0200
commitc27b3816e4a7bf2047820ba47664ed1c874216c1 (patch)
treec264934cac287a457d7be0305bed8869a983c63a /libavformat/webvttdec.c
parent4d46fd0b3ed14cfcfc4fd7fc1e4fb29f8fcea65c (diff)
downloadffmpeg-c27b3816e4a7bf2047820ba47664ed1c874216c1.tar.gz
srt: make the demuxer output SubRip packets.
The SRT format should never have outputted CODEC_ID_SRT packets in the first place: SRT is a subtitle format containing SubRip text markup events. The timing information is part of the format, not the codec, and thus CODEC_ID_SRT should not exist. Creating packets with the timing information within the payload only leads to problem (such as remuxing with timing alteration not working), especially when the SubRip markup is being used in container like Matroska in addition to this standalone SRT format. The main reason the timing line was included in those CODEC_ID_SRT packets is likely because it contained extra information (the event position) the codec actually needs. This issue is solved by using the AV_PKT_DATA_SUBTITLE_POSITION side data type.
Diffstat (limited to 'libavformat/webvttdec.c')
0 files changed, 0 insertions, 0 deletions