Browse Source

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>
tags/n4.1
Aman Gupta 7 years ago
parent
commit
42a03e7700
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavformat/mpegts.c

+ 1
- 1
libavformat/mpegts.c View File

@@ -490,7 +490,7 @@ static MpegTSFilter *mpegts_open_section_filter(MpegTSContext *ts,
sec = &filter->u.section_filter; sec = &filter->u.section_filter;
sec->section_cb = section_cb; sec->section_cb = section_cb;
sec->opaque = opaque; 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->check_crc = check_crc;
sec->last_ver = -1; sec->last_ver = -1;




Loading…
Cancel
Save