diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2011-10-16 04:41:11 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2011-10-16 04:41:11 +0200 |
commit | 410c06d2f3e397069307f35e4c12e19ac47f4b6d (patch) | |
tree | 75650dbc660a627908a4b112d2117f72a7c02e40 /libavformat/asfdec.c | |
parent | 2822361ed1fe18b03a35dfdbda811de6bd919e0a (diff) | |
download | ffmpeg-410c06d2f3e397069307f35e4c12e19ac47f4b6d.tar.gz |
asf: export encryption information from asf.
This way user apps can choose to skip such content.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/asfdec.c')
-rw-r--r-- | libavformat/asfdec.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavformat/asfdec.c b/libavformat/asfdec.c index e09b70070f..8108102139 100644 --- a/libavformat/asfdec.c +++ b/libavformat/asfdec.c @@ -637,8 +637,10 @@ static int asf_read_header(AVFormatContext *s, AVFormatParameters *ap) if (!s->keylen) { if (!ff_guidcmp(&g, &ff_asf_content_encryption)) { 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)) { 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)) { av_log(s, AV_LOG_WARNING, "Digital signature detected, decoding will likely fail!\n"); } |