projects
/
dcpomatic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d652b6d
)
Fix invalid memory access introduced in 6f832724ef942f133f6f8d0a06d7377beea8f7a6
v2.15.150
author
Carl Hetherington
<cth@carlh.net>
Fri, 21 May 2021 14:24:02 +0000
(16:24 +0200)
committer
Carl Hetherington
<cth@carlh.net>
Fri, 21 May 2021 14:24:02 +0000
(16:24 +0200)
src/lib/ffmpeg_examiner.cc
patch
|
blob
|
history
diff --git
a/src/lib/ffmpeg_examiner.cc
b/src/lib/ffmpeg_examiner.cc
index a793c7b985d09bfcd91114abe76c6723327dc252..bd6a9b20d475b6b23a7781a735bf52f09b19281e 100644
(file)
--- 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,