]> git.sesse.net Git - ffmpeg/commit
lavc/srtenc: fix invalid read in case of SubRip.
authorClément Bœsch <ubitux@gmail.com>
Thu, 25 Oct 2012 16:50:26 +0000 (18:50 +0200)
committerClément Bœsch <ubitux@gmail.com>
Fri, 26 Oct 2012 19:48:27 +0000 (21:48 +0200)
commiteb36ee1ee11c269e24ad4595fadf50e78463d5e2
tree2d6c8d4431d5d897a10a3fd7901090a77b0cc6f6
parent5b45b66220ffdf37619dbd70e41df31651db3f93
lavc/srtenc: fix invalid read in case of SubRip.

Regression since 6057de19b. The ptr-2 is used to eat the \r\n and add
the position information on the timing line. This can't be done in case
of SubRip where the timing isn't present in the payload.

Note that we can't use yet the side data to transmit the position
information since the encode subtitles API is still using buffer+size
instead AVPacket as input.
libavcodec/srtenc.c