diff --git a/libavformat/assdec.c b/libavformat/assdec.c index c5d319dffc..82e6a712d7 100644 --- a/libavformat/assdec.c +++ b/libavformat/assdec.c @@ -37,7 +37,7 @@ static void get_line(ByteIOContext *s, char *buf, int maxlen) do{ c = get_byte(s); - if (i < maxlen-1 && c != '\r') + if (i < maxlen-1) buf[i++] = c; }while(c != '\n' && c);