From 6347146e3d3d55216445696504d49e33470e17ad Mon Sep 17 00:00:00 2001 From: Paul B Mahol Date: Thu, 25 Apr 2019 23:21:38 +0200 Subject: avformat/subtitles: ignore extra '\r' at line endings --- libavformat/subtitles.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libavformat/subtitles.h') diff --git a/libavformat/subtitles.h b/libavformat/subtitles.h index ca78db224d..6b418e3621 100644 --- a/libavformat/subtitles.h +++ b/libavformat/subtitles.h @@ -188,7 +188,7 @@ static av_always_inline int ff_subtitles_next_line(const char *ptr) { int n = strcspn(ptr, "\r\n"); ptr += n; - if (*ptr == '\r') { + while (*ptr == '\r') { ptr++; n++; } -- cgit v1.2.3