]> git.sesse.net Git - ffmpeg/commit
avformat/vobsub: do not attempt to check duplicate subtitles
authorwm4 <nfxjfg@googlemail.com>
Mon, 21 Sep 2015 11:43:32 +0000 (13:43 +0200)
committerwm4 <nfxjfg@googlemail.com>
Mon, 21 Sep 2015 11:43:32 +0000 (13:43 +0200)
commit5c93e57f5c07b52f04363c178c4fc1892c0d71aa
tree6afb4ea64f810b32c26caef6026be60502d97acf
parentc216324a7f958f09a7ee68c5cca28fdd166fba9d
avformat/vobsub: do not attempt to check duplicate subtitles

Some .idx files actually contain duplicate subtitle events:

timestamp: 00:07:52:600, filepos: 00004e800
timestamp: 00:07:52:600, filepos: 00004f800

The second will be dropped, because it has same pts, duration, and text
(the text is just a dummy empty string; the real data is retrieved when
actually reading vobsub subtitle packets).

Dropping this is probably not intended/safe, so avoid it.

See trac issue #4872 for a sample. This patch doesn't fix decoding of
the sample, though.
libavformat/mpeg.c