projects
/
dcpomatic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
57c0448
)
Add an assertion.
author
Carl Hetherington
<cth@carlh.net>
Sat, 6 Jul 2019 22:37:55 +0000
(23:37 +0100)
committer
Carl Hetherington
<cth@carlh.net>
Sat, 6 Jul 2019 22:37:55 +0000
(23:37 +0100)
src/lib/ffmpeg_decoder.cc
patch
|
blob
|
history
diff --git
a/src/lib/ffmpeg_decoder.cc
b/src/lib/ffmpeg_decoder.cc
index cbde534c30608e97cdd1c673754a95ae6c32bf8b..62d4d2655f59c84af57f96c8c3d25e747794a352 100644
(file)
--- a/
src/lib/ffmpeg_decoder.cc
+++ b/
src/lib/ffmpeg_decoder.cc
@@
-364,6
+364,7
@@
FFmpegDecoder::seek (ContentTime time, bool accurate)
if (_video_stream) {
stream = _video_stream;
} else {
if (_video_stream) {
stream = _video_stream;
} else {
+ DCPOMATIC_ASSERT (_ffmpeg_content->audio);
shared_ptr<FFmpegAudioStream> s = dynamic_pointer_cast<FFmpegAudioStream> (_ffmpeg_content->audio->stream ());
if (s) {
stream = s->index (_format_context);
shared_ptr<FFmpegAudioStream> s = dynamic_pointer_cast<FFmpegAudioStream> (_ffmpeg_content->audio->stream ());
if (s) {
stream = s->index (_format_context);