comparison asfdec.c @ 5273:f292b3e34823 libavformat

Detect Windows Media DRM protected files and display warning if no key was provided. Patch by Daniel G. Taylor, dan programmer-art org
author cehoyos
date Sun, 11 Oct 2009 23:09:33 +0000
parents 3fe89226cacf
children 4211f91f69b1
comparison
equal deleted inserted replaced
5272:f49b29ab43fc 5273:f292b3e34823
530 } 530 }
531 #endif 531 #endif
532 } else if (url_feof(pb)) { 532 } else if (url_feof(pb)) {
533 return -1; 533 return -1;
534 } else { 534 } else {
535 if (!s->keylen) {
536 if (!guidcmp(&g, &ff_asf_content_encryption)) {
537 av_log(s, AV_LOG_WARNING, "DRM protected stream detected, decoding will likely fail!\n");
538 } else if (!guidcmp(&g, &ff_asf_ext_content_encryption)) {
539 av_log(s, AV_LOG_WARNING, "Ext DRM protected stream detected, decoding will likely fail!\n");
540 } else if (!guidcmp(&g, &ff_asf_digital_signature)) {
541 av_log(s, AV_LOG_WARNING, "Digital signature detected, decoding will likely fail!\n");
542 }
543 }
535 url_fseek(pb, gsize - 24, SEEK_CUR); 544 url_fseek(pb, gsize - 24, SEEK_CUR);
536 } 545 }
537 } 546 }
538 get_guid(pb, &g); 547 get_guid(pb, &g);
539 get_le64(pb); 548 get_le64(pb);