summaryrefslogtreecommitdiff
path: root/src/lib/ffmpeg_examiner.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2019-05-13 16:08:33 +0100
committerCarl Hetherington <cth@carlh.net>2019-05-13 16:08:33 +0100
commit257fce15e8b4dfa112d039e7888e3ec04e523198 (patch)
tree3afe5047010bb71aaa3851ef3b2f438509bccad3 /src/lib/ffmpeg_examiner.cc
parent5de2fd90b92829cea8ab297c6fce81c582332cb7 (diff)
swaroop: basics of encrypted MP4 playback.
Diffstat (limited to 'src/lib/ffmpeg_examiner.cc')
-rw-r--r--src/lib/ffmpeg_examiner.cc7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/lib/ffmpeg_examiner.cc b/src/lib/ffmpeg_examiner.cc
index 382b71b83..a4c5eb128 100644
--- a/src/lib/ffmpeg_examiner.cc
+++ b/src/lib/ffmpeg_examiner.cc
@@ -166,6 +166,13 @@ FFmpegExaminer::FFmpegExaminer (shared_ptr<const FFmpegContent> c, shared_ptr<Jo
DCPOMATIC_ASSERT (fabs (*_rotation - 90 * round (*_rotation / 90)) < 2);
}
+
+#ifdef DCPOMATIC_VARIANT_SWAROOP
+ AVDictionaryEntry* e = av_dict_get (_format_context->metadata, SWAROOP_ID_TAG, 0, 0);
+ if (e) {
+ _id = e->value;
+ }
+#endif
}
void