diff --git a/libavformat/mpegts.c b/libavformat/mpegts.c index 9c09819531a28a1c8f0853ee29af7e34ac2b5b9e..27b1c30a44c5db7911b2e54ccd7ba9c5c9ba12a4 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;