Commit 410c06d2 authored by Michael Niedermayer's avatar Michael Niedermayer

asf: export encryption information from asf.

This way user apps can choose to skip such content.
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 2822361e
...@@ -637,8 +637,10 @@ static int asf_read_header(AVFormatContext *s, AVFormatParameters *ap) ...@@ -637,8 +637,10 @@ static int asf_read_header(AVFormatContext *s, AVFormatParameters *ap)
if (!s->keylen) { if (!s->keylen) {
if (!ff_guidcmp(&g, &ff_asf_content_encryption)) { if (!ff_guidcmp(&g, &ff_asf_content_encryption)) {
av_log(s, AV_LOG_WARNING, "DRM protected stream detected, decoding will likely fail!\n"); av_log(s, AV_LOG_WARNING, "DRM protected stream detected, decoding will likely fail!\n");
av_dict_set(&s->metadata, "encryption", "ASF Content Encryption", 0);
} else if (!ff_guidcmp(&g, &ff_asf_ext_content_encryption)) { } else if (!ff_guidcmp(&g, &ff_asf_ext_content_encryption)) {
av_log(s, AV_LOG_WARNING, "Ext DRM protected stream detected, decoding will likely fail!\n"); av_log(s, AV_LOG_WARNING, "Ext DRM protected stream detected, decoding will likely fail!\n");
av_dict_set(&s->metadata, "encryption", "ASF Extended Content Encryption", 0);
} else if (!ff_guidcmp(&g, &ff_asf_digital_signature)) { } else if (!ff_guidcmp(&g, &ff_asf_digital_signature)) {
av_log(s, AV_LOG_WARNING, "Digital signature detected, decoding will likely fail!\n"); av_log(s, AV_LOG_WARNING, "Digital signature detected, decoding will likely fail!\n");
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment