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

Benjamin Larsson banan
Fri Oct 9 14:03:17 CEST 2009


Daniel G. Taylor wrote:
> 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,
>   

In this case decryption is possible if the key is provided. I think it 
would be preferable if this message is only printed it there is no key 
specified.

MvH
Benjamin Larsson





More information about the ffmpeg-devel mailing list