diff options
author | Aman Gupta <aman@tmm1.net> | 2018-05-14 20:24:44 +0300 |
---|---|---|
committer | Aman Gupta <aman@tmm1.net> | 2018-05-14 20:26:13 +0300 |
commit | 42a03e77000692ad6de032b8cf684e1d6ec73790 (patch) | |
tree | 2fde60697df355fb3248177fe665a01910f4bd10 | |
parent | 2bde38c0ab6c06aca6a5460055c5b1e1296732f3 (diff) |
avformat/mpegts: initialize section_buf to fix valgrind test failure
http://fate.ffmpeg.org/report.cgi?slot=x86_64-archlinux-gcc-valgrind&time=20180513001958
Signed-off-by: Aman Gupta <aman@tmm1.net>
-rw-r--r-- | libavformat/mpegts.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/mpegts.c b/libavformat/mpegts.c index 9c09819531..27b1c30a44 100644 --- a/libavformat/mpegts.c +++ b/libavformat/mpegts.c @@ -490,7 +490,7 @@ static MpegTSFilter *mpegts_open_section_filter(MpegTSContext *ts, sec = &filter->u.section_filter; sec->section_cb = section_cb; sec->opaque = opaque; - sec->section_buf = av_malloc(MAX_SECTION_SIZE); + sec->section_buf = av_mallocz(MAX_SECTION_SIZE); sec->check_crc = check_crc; sec->last_ver = -1; |