Browse Source

avformat/hlsenc: Don't use uninitialized buffer in av_stristr()

Introduced in a2b1dd0ce3.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
tags/n4.4
Andreas Rheinhardt 5 years ago
parent
commit
1ba174f461
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      libavformat/hlsenc.c

+ 2
- 1
libavformat/hlsenc.c View File

@@ -380,7 +380,8 @@ static void write_codec_attr(AVStream *st, VariantStream *vs)
profile != FF_PROFILE_UNKNOWN &&
level != FF_LEVEL_UNKNOWN) {
snprintf(attr, sizeof(attr), "%s.%d.4.L%d.B01", av_fourcc2str(st->codecpar->codec_tag), profile, level);
}
} else
goto fail;
} else if (st->codecpar->codec_id == AV_CODEC_ID_MP2) {
snprintf(attr, sizeof(attr), "mp4a.40.33");
} else if (st->codecpar->codec_id == AV_CODEC_ID_MP3) {


Loading…
Cancel
Save