[FFmpeg-devel] [PATCH] Detect FairPlay DRM protected files and display warning
Diego Biurrun
diego
Fri Oct 9 18:30:58 CEST 2009
On Fri, Oct 09, 2009 at 11:53:36AM +0200, Daniel G. Taylor wrote:
>
> Attached patch detects FairPlay DRM in mov/mp4/m4a/m4v/m4p files and
> displays a warning that the stream decoding will likely fail.
>
> --- libavformat/mov.c (revision 20188)
> +++ libavformat/mov.c (working copy)
> @@ -847,6 +847,12 @@
>
> + if (format == MKTAG('d','r','m','s'))
> + {
> + av_log(c->fc, AV_LOG_WARNING, "DRM-protected stream detected, "
> + "decoding will likely fail!\n");
> + }
Your brace placement disagrees with the rest of the file.
Diego
More information about the ffmpeg-devel
mailing list