pvfdec: drop pointless casting of buffer in ff_get_line()
authorPaul B Mahol <onemda@gmail.com>
Wed, 19 Dec 2012 15:55:39 +0000 (15:55 +0000)
committerPaul B Mahol <onemda@gmail.com>
Wed, 19 Dec 2012 15:55:39 +0000 (15:55 +0000)
Signed-off-by: Paul B Mahol <onemda@gmail.com>
libavformat/pvfdec.c

index 605d665..c678046 100644 (file)
@@ -37,7 +37,7 @@ static int pvf_read_header(AVFormatContext *s)
     int bps, channels, sample_rate;
 
     avio_skip(s->pb, 5);
-    ff_get_line(s->pb, (char *)&buffer, 32);
+    ff_get_line(s->pb, buffer, sizeof(buffer));
     if (sscanf(buffer, "%d %d %d",
                &channels,
                &sample_rate,