[libav-bugs] [Bug 549] New: HLS will not decrypt stream when using a data url.

bugzilla at libav.org bugzilla at libav.org
Fri Aug 9 20:53:47 CEST 2013


https://bugzilla.libav.org/show_bug.cgi?id=549

           Summary: HLS will not decrypt stream when using a data url.
           Product: Libav
           Version: git HEAD
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: major
          Priority: Normal
         Component: libavformat
        AssignedTo: bugzilla at libav.org
        ReportedBy: sblack at omnifone.com


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.

-- 
Configure bugmail: https://bugzilla.libav.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.


More information about the libav-bugs mailing list