aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2013-11-09 16:03:41 +0100
committerMichael Niedermayer <michaelni@gmx.at>2013-11-09 16:03:41 +0100
commit9825b99eca0fb7ff4e5939f03c154f27eef04ebb (patch)
tree312a21a42ea28c11618ab44a7ca4643f4321b3db
parent76a47d66c41417184b777fd925d8907498c24177 (diff)
downloadffmpeg-9825b99eca0fb7ff4e5939f03c154f27eef04ebb.tar.gz
avformat/mpegts: do not hardcode type used in memset()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--libavformat/mpegts.c2
1 files changed, 1 insertions, 1 deletions
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<size-3; i++){
if(buf[i] == 0x47 && !(buf[i+1] & 0x80) && buf[i+3] != 0x47){