git.videolan.org
/
ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
76a47d6
)
avformat/mpegts: do not hardcode type used in memset()
author
Michael Niedermayer
<michaelni@gmx.at>
Sat, 9 Nov 2013 15:03:41 +0000
(16:03 +0100)
committer
Michael Niedermayer
<michaelni@gmx.at>
Sat, 9 Nov 2013 15:03:41 +0000
(16:03 +0100)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavformat/mpegts.c
patch
|
blob
|
history
diff --git
a/libavformat/mpegts.c
b/libavformat/mpegts.c
index
c91018e
..
bded171
100644
(file)
--- 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(
in
t));
+ memset(stat, 0, packet_size*sizeof(
*sta
t));
for(x=i=0; i<size-3; i++){
if(buf[i] == 0x47 && !(buf[i+1] & 0x80) && buf[i+3] != 0x47){