[FFmpeg-devel] [PATCH] Detect Windows Media DRM protected files and display warning

Daniel G. Taylor dan
Fri Oct 9 13:51:43 CEST 2009


Hey,

Attached patch detects Windows Media DRM in asf/wma/wmv files and
displays a warning that the stream decoding will likely fail.

This patch goes along with the FairPlay DRM detection patch sent earlier
today.

There are three ASF objects that describe the inclusion of DRM protected
content, and this patch detects all three and displays a message for
each one. This could possibly be handled better (e.g. only show one
message) and could some day be exposed to developers using libav*
through ASFContext or ASFStream, but for now a simple warning should at
least help debug issues people may have.

Take care,
-- 
Daniel G. Taylor
http://programmer-art.org/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: detect_wmdrm.diff
Type: text/x-patch
Size: 2505 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20091009/766ed0f1/attachment.bin>



More information about the ffmpeg-devel mailing list