assdec: don't remove CR, they are part of the spec
authorAurelien Jacobs <aurel@gnuage.org>
Sat, 27 Sep 2008 23:12:24 +0000 (23:12 +0000)
committerAurelien Jacobs <aurel@gnuage.org>
Sat, 27 Sep 2008 23:12:24 +0000 (23:12 +0000)
Originally committed as revision 15442 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavformat/assdec.c

index c5d319d..82e6a71 100644 (file)
@@ -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);