[FFmpeg-cvslog] avformat/mpegts: initialize section_buf to fix valgrind test failure
Aman Gupta
git at videolan.org
Sat May 19 05:18:31 EEST 2018
ffmpeg | branch: release/4.0 | Aman Gupta <aman at tmm1.net> | Mon May 14 10:24:44 2018 -0700| [d1845e7f1a3960bfbaf06c9b280121e8499204f8] | committer: Aman Gupta
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 at tmm1.net>
(cherry picked from commit 42a03e77000692ad6de032b8cf684e1d6ec73790)
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=d1845e7f1a3960bfbaf06c9b280121e8499204f8
---
libavformat/mpegts.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavformat/mpegts.c b/libavformat/mpegts.c
index a6d0624882..8fff8d4934 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;
More information about the ffmpeg-cvslog
mailing list