[FFmpeg-devel] [PATCH 1/4] mpl2dec: handle files with CRLF linebreaks correctly
wm4
nfxjfg at googlemail.com
Thu Aug 8 11:00:21 CEST 2013
On Thu, 8 Aug 2013 07:12:52 +0200
Clément Bœsch <ubitux at gmail.com> wrote:
> > - line[strcspn(line, "\r\n")] = 0;
> > + line[strcspn(line, "\n")] = 0;
> >
>
> This one doesn't thought: line will end up with a \r in it.
srtdec.c does the same thing, and indeed, the libavcodec parts filter
out the \r. Without this change, it would keep the line break if the
subtitle file is CRLF.
More information about the ffmpeg-devel
mailing list