[MPlayer-dev-eng] [PATCH] add lavfdopts cryptokey
Reimar Döffinger
Reimar.Doeffinger at stud.uni-karlsruhe.de
Tue Oct 9 17:11:52 CEST 2007
Hello,
On Tue, Oct 09, 2007 at 04:20:05PM +0200, Michael Niedermayer wrote:
[...]
> btw, what about doing the hexstring->binary conversion in the codec?
> this seems a little simpler alseo
> AVOptions do support strings ...
hexstring is not a "native" format for keys, that's why I find that
conversion more natural in the interface code.
Doing the conversion in the demuxer would also mean that playback
applications that read the encrypted key from an XML file, decrypt it
then with a public key algorithm would then have to convert it to a
string again (this XML thingy is how it seems to be done for MXF often).
If you are only thinking of support via AVOptions, maybe adding support
for binary data array + length would maybe not be such a bad idea (though not
sure if it would be hackish due to having to fill two struct members), it would
allow overriding e.g. extradata for testing (or is that something that no-one
really needs? ;-) )
Greetings,
Reimar Döffinger
More information about the MPlayer-dev-eng
mailing list