X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavformat%2Fsubtitles.h;h=6b418e3621150d633de0ff4cc903658d1716171d;hb=d92b2296f85467af25b0ec95a6d6f6327db9e056;hp=ca78db224d52f26fa4e8d7dffce68b05df579594;hpb=f32d2939555706365ad1d39aadd5ee7ce1d9fa4f;p=ffmpeg diff --git a/libavformat/subtitles.h b/libavformat/subtitles.h index ca78db224d5..6b418e36211 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++; }