diff options
| author | Carl Hetherington <cth@carlh.net> | 2021-05-21 16:24:02 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2021-05-21 16:24:02 +0200 |
| commit | 0bbcd3880588c5c82f4f19f9465fb2332ea6e0a8 (patch) | |
| tree | 8781b10afe3fe7565638076852897438a6a01f7b | |
| parent | d652b6dbc655eaa56000620ef55f96badbaa89ff (diff) | |
Fix invalid memory access introduced in 6f832724ef942f133f6f8d0a06d7377beea8f7a6v2.15.150
| -rw-r--r-- | src/lib/ffmpeg_examiner.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/ffmpeg_examiner.cc b/src/lib/ffmpeg_examiner.cc index a793c7b98..bd6a9b20d 100644 --- a/src/lib/ffmpeg_examiner.cc +++ b/src/lib/ffmpeg_examiner.cc @@ -69,7 +69,7 @@ FFmpegExaminer::FFmpegExaminer (shared_ptr<const FFmpegContent> c, shared_ptr<Jo for (uint32_t i = 0; i < _format_context->nb_streams; ++i) { auto s = _format_context->streams[i]; - auto codec = _codec_context[i]->codec; + auto codec = _codec_context[i] ? _codec_context[i]->codec : nullptr; if (s->codecpar->codec_type == AVMEDIA_TYPE_AUDIO && codec) { /* This is a hack; sometimes it seems that _audio_codec_context->channel_layout isn't set up, |
