[FFmpeg-cvslog] avidec: simplify size parameter in memset()

Janne Grunau git at videolan.org
Tue Oct 11 03:52:30 CEST 2011


ffmpeg | branch: master | Janne Grunau <janne-libav at jannau.net> | Mon Oct 10 13:28:18 2011 +0200| [2886f6759f31b192935761544c25d3677d66d24e] | committer: Janne Grunau

avidec: simplify size parameter in memset()

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

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

diff --git a/libavformat/avidec.c b/libavformat/avidec.c
index 8c0ef13..81f72d3 100644
--- a/libavformat/avidec.c
+++ b/libavformat/avidec.c
@@ -848,7 +848,7 @@ static int avi_sync(AVFormatContext *s, int exit_early)
     int64_t i, sync;
 
 start_sync:
-    memset(d, -1, sizeof(int)*8);
+    memset(d, -1, sizeof(d));
     for(i=sync=avio_tell(pb); !pb->eof_reached; i++) {
         int j;
 



More information about the ffmpeg-cvslog mailing list