[FFmpeg-devel] Suggested change for encrypted video

Michael Niedermayer michaelni at gmx.at
Thu Oct 27 03:26:22 CEST 2011

On Wed, Oct 26, 2011 at 09:03:38PM -0400, Don Moir wrote:
> per Michael:
> >ive added some flags locally, ill push them in main git in a moment
> >thanks for your report.
> Thanks for this and works good. I am not quite sure though what all
> I should be checking
> I have something like this:
> AVDictionaryEntry* pProtectedEntry = av_dict_get
> (pFormatCtx->metadata,"encryption",NULL,0);
> if (pProctectedEntry == NULL)
>    pProctededEntry = av_dict_get
> (pFormatCtx->metadata,"ASF_Protection_Type",NULL,0);
> if (pProtectedEntry)
>    report_protected (pProtectedEntry);
> The remaining details are not quite clear. Like possibility of
> further checks etc. Seems to work well enough with the above though.
> Are the well known dictionary keys documented somewhere ?

theres a list in libavformat/avformat.h
patches that improve it are welcome!

Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Dictatorship naturally arises out of democracy, and the most aggravated
form of tyranny and slavery out of the most extreme liberty. -- Plato
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20111027/593e49d0/attachment.asc>

More information about the ffmpeg-devel mailing list