[MPlayer-dev-eng] [PATCH] add lavfdopts cryptokey

Michael Niedermayer michaelni at gmx.at
Tue Oct 9 16:20:05 CEST 2007


Hi

On Mon, Oct 08, 2007 at 08:20:29PM +0200, Reimar Döffinger wrote:
> Hello,
> On Mon, Oct 08, 2007 at 08:10:33PM +0200, Baptiste Coudurier wrote:
> > Reimar Döffinger wrote:
> > > On Mon, Oct 08, 2007 at 07:58:41PM +0200, Baptiste Coudurier wrote:
> > >> Reimar Döffinger wrote:
> > >>> something similar to this is needed to allow playback of encrypted MXF
> > >>> (and in the future ASF) files.
> > >>> Is it okay to apply as is or does it need changes?
> > >> Maybe an API in libavformat is worth, we might have the same code in
> > >> ffmpeg/ffplay.
> > > 
> > > API for hexstring to uint8_t array conversion? I admit I didn't check,
> > > it might even be there already. Or what do you mean?
> > 
> > Yes, kinda. I was thinking of av_set_crypt_key, setting key/keylen,
> > because I have the exact same patch for ffmpeg.c, but it might not be
> > worth it.
> 
> I am not entirely opposed, but currently it seems a bit overkill. If we
> really support some more unusual encryption stuff (e.g. per track keys) a
> properly designed API for setting and handling the keys will be
> necessary but it seems a bit too early for that kind of thing to me.
> Can someone think of any other place where we use hexstring/byte array
> conversion already? I didn't see any at first glance, so no idea if
> something like that would be appropriate to put into libavutil.

btw, what about doing the hexstring->binary conversion in the codec?
this seems a little simpler alseo
AVOptions do support strings ...

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Breaking DRM is a little like attempting to break through a door even
though the window is wide open and the only thing in the house is a bunch
of things you dont want and which you would get tomorrow for free anyway
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20071009/df6c5b02/attachment.pgp>


More information about the MPlayer-dev-eng mailing list