]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/webvttdec.c
avcodec/codec, allcodecs: Constify the AVCodec API
[ffmpeg] / libavformat / webvttdec.c
index bd3d45b3829ec1ba6954646badc15d4efad194b5..cf060bd01180066863cad582eaa4eec8d19d4943 100644 (file)
@@ -78,7 +78,7 @@ static int webvtt_read_header(AVFormatContext *s)
         int64_t pos;
         AVPacket *sub;
         const char *p, *identifier, *settings;
-        int identifier_len, settings_len;
+        size_t identifier_len, settings_len;
         int64_t ts_start, ts_end;
 
         ff_subtitles_read_chunk(s->pb, &cue);
@@ -125,7 +125,7 @@ static int webvtt_read_header(AVFormatContext *s)
             break;
 
         /* optional cue settings */
-        p += strcspn(p, "\n\t ");
+        p += strcspn(p, "\n\r\t ");
         while (*p == '\t' || *p == ' ')
             p++;
         settings = p;