From: Michael Niedermayer Date: Sat, 9 Nov 2013 15:03:41 +0000 (+0100) Subject: avformat/mpegts: do not hardcode type used in memset() X-Git-Tag: n2.2-rc1~2138 X-Git-Url: http://git.videolan.org/?p=ffmpeg.git;a=commitdiff_plain;h=9825b99eca0fb7ff4e5939f03c154f27eef04ebb avformat/mpegts: do not hardcode type used in memset() Signed-off-by: Michael Niedermayer --- diff --git a/libavformat/mpegts.c b/libavformat/mpegts.c index c91018ec0f..bded171f0b 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