diff options
author | Paul B Mahol <onemda@gmail.com> | 2019-04-25 23:21:38 +0200 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2019-04-27 12:49:56 +0200 |
commit | 6347146e3d3d55216445696504d49e33470e17ad (patch) | |
tree | 1651af9ea02e726f8be73ccb22a504dfa009cd5d /libavformat/subtitles.h | |
parent | 2e254bb897471b4a4db2b846947fc6c00faac3e6 (diff) |
avformat/subtitles: ignore extra '\r' at line endings
Diffstat (limited to 'libavformat/subtitles.h')
-rw-r--r-- | libavformat/subtitles.h | 2 |
1 files changed, 1 insertions, 1 deletions
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++; } |