[FFmpeg-devel] [PATCH] Allow HLS to decrypt stream when using a data url for the key

Michael Niedermayer michaelni at gmx.at
Sun Mar 16 18:23:58 CET 2014


On Thu, Mar 13, 2014 at 10:00:46AM +0000, Simon Black wrote:
> If HLS is trying to play an encrypted stream where the key is a data URL rather
> than a file based key HLS will not work.
> 
> a data url within the key is one such as:
> #EXT-X-KEY:METHOD=AES-128,URI="data:;base64,dKbarMNMRSmPPEXQ3dDCNA=="
> 
> The error message is reported as:
> 
> [https @ 0x7f9eb00120c0] HTTP error 404 Not Found
> Unable to open key file
> 
> https://BASE.URL.HERE/data:;base64,dKbarMNMRSmPPEXQ3dDCNA
> ==
> 
> This is caused as the URL is created with the value in URI field of the
> EXT-X-KEY tag using 
> 
> ff_make_absolute_url(seg->key, sizeof(seg->key), url, key);
> 
> the data: schema is ignored.

do you have a public url with which to test/verify this bugfix ?

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

Many things microsoft did are stupid, but not doing something just because
microsoft did it is even more stupid. If everything ms did were stupid they
would be bankrupt already.
-------------- 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/20140316/8d708475/attachment.asc>


More information about the ffmpeg-devel mailing list