diff options
| author | Carl Hetherington <cth@carlh.net> | 2018-10-19 22:50:47 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2018-10-19 22:50:47 +0100 |
| commit | 9c44c5fa8eaf00ef4e61c08273b8df55047ac082 (patch) | |
| tree | 4529be91d9426e051c895776b5afd2fd1fa1c556 /src/lib/ffmpeg.cc | |
| parent | 6829a1c1b3c577cdd6bc6d206dd52608b0a976ab (diff) | |
Add decryption support.v2.13.63
Diffstat (limited to 'src/lib/ffmpeg.cc')
| -rw-r--r-- | src/lib/ffmpeg.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lib/ffmpeg.cc b/src/lib/ffmpeg.cc index 5171166d5..1502b3de9 100644 --- a/src/lib/ffmpeg.cc +++ b/src/lib/ffmpeg.cc @@ -128,6 +128,9 @@ FFmpeg::setup_general () */ av_dict_set (&options, "analyzeduration", raw_convert<string> (5 * 60 * 1000000).c_str(), 0); av_dict_set (&options, "probesize", raw_convert<string> (5 * 60 * 1000000).c_str(), 0); + if (_ffmpeg_content->decryption_key()) { + av_dict_set (&options, "decryption_key", _ffmpeg_content->decryption_key()->c_str(), 0); + } int e = avformat_open_input (&_format_context, 0, 0, &options); if (e < 0) { |
