avformat/crypto: added encryption

Signed-off-by: Christian Suloway <csuloway@globaleagleent.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
avformat/crypto: Use av_memdup()

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>