[FFmpeg-cvslog] pvfdec: drop pointless casting of buffer in ff_get_line()
Paul B Mahol
git at videolan.org
Wed Dec 19 17:02:20 CET 2012
ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Wed Dec 19 15:55:39 2012 +0000| [d85854b2691f9edeaf36ef32c2608c047636e8c0] | committer: Paul B Mahol
pvfdec: drop pointless casting of buffer in ff_get_line()
Signed-off-by: Paul B Mahol <onemda at gmail.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=d85854b2691f9edeaf36ef32c2608c047636e8c0
---
libavformat/pvfdec.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavformat/pvfdec.c b/libavformat/pvfdec.c
index 605d665..c678046 100644
--- a/libavformat/pvfdec.c
+++ b/libavformat/pvfdec.c
@@ -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,
More information about the ffmpeg-cvslog
mailing list