From 9825b99eca0fb7ff4e5939f03c154f27eef04ebb Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Sat, 9 Nov 2013 16:03:41 +0100 Subject: [PATCH] avformat/mpegts: do not hardcode type used in memset() Signed-off-by: Michael Niedermayer --- libavformat/mpegts.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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