[FFmpeg-cvslog] libmodplug: consistent use of sizeof.

Clément Bœsch git at videolan.org
Wed Oct 5 21:31:37 CEST 2011


ffmpeg | branch: master | Clément Bœsch <ubitux at gmail.com> | Wed Oct  5 21:06:11 2011 +0200| [54208857378cc772b1a2a99dec9116d7254d7bae] | committer: Clément Bœsch

libmodplug: consistent use of sizeof.

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=54208857378cc772b1a2a99dec9116d7254d7bae
---

 libavformat/libmodplug.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/libavformat/libmodplug.c b/libavformat/libmodplug.c
index c10c500..212e225 100644
--- a/libavformat/libmodplug.c
+++ b/libavformat/libmodplug.c
@@ -38,7 +38,7 @@ static int modplug_read_header(AVFormatContext *s, AVFormatParameters *ap)
     ModPlug_Settings settings;
     ModPlugContext *modplug = s->priv_data;
 
-    int sz = avio_read(pb, modplug->buf, sizeof modplug->buf);
+    int sz = avio_read(pb, modplug->buf, sizeof(modplug->buf));
 
     ModPlug_GetSettings(&settings);
     settings.mChannels       = 2;
@@ -70,7 +70,7 @@ static int modplug_read_packet(AVFormatContext *s, AVPacket *pkt)
     ModPlugContext *modplug = s->priv_data;
     uint8_t buf[512];
 
-    n = ModPlug_Read(modplug->f, buf, sizeof buf);
+    n = ModPlug_Read(modplug->f, buf, sizeof(buf));
     if (n <= 0)
         return AVERROR(EIO);
 



More information about the ffmpeg-cvslog mailing list