[FFmpeg-cvslog] avformat/mpegts: do not hardcode type used in memset()

Michael Niedermayer git at videolan.org
Sat Nov 9 16:22:07 CET 2013


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Sat Nov  9 16:03:41 2013 +0100| [9825b99eca0fb7ff4e5939f03c154f27eef04ebb] | committer: Michael Niedermayer

avformat/mpegts: do not hardcode type used in memset()

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

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

 libavformat/mpegts.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavformat/mpegts.c b/libavformat/mpegts.c
index c91018e..bded171 100644
--- a/libavformat/mpegts.c
+++ b/libavformat/mpegts.c
@@ -455,7 +455,7 @@ static int analyze(const uint8_t *buf, int size, int packet_size, int *index){
     int x=0;
     int best_score=0;
 
-    memset(stat, 0, packet_size*sizeof(int));
+    memset(stat, 0, packet_size*sizeof(*stat));
 
     for(x=i=0; i<size-3; i++){
         if(buf[i] == 0x47 && !(buf[i+1] & 0x80) && buf[i+3] != 0x47){



More information about the ffmpeg-cvslog mailing list