[Bug 731968] New: hlsdemux: Fix decrypting fragments

GStreamer (bugzilla.gnome.org) bugzilla at gnome.org
Fri Jun 20 07:27:06 PDT 2014


https://bugzilla.gnome.org/show_bug.cgi?id=731968
  GStreamer | gst-plugins-bad | git

           Summary: hlsdemux: Fix decrypting fragments
    Classification: Platform
           Product: GStreamer
           Version: git
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: Normal
         Component: gst-plugins-bad
        AssignedTo: gstreamer-bugs at lists.freedesktop.org
        ReportedBy: gstblub at gmail.com
         QAContact: gstreamer-bugs at lists.freedesktop.org
     GNOME version: ---


Created an attachment (id=278838)
 --> (https://bugzilla.gnome.org/attachment.cgi?id=278838)
Patch

Only reset the decryption engine on the first buffer of a fragment, not again
for the second buffer.  This fixes corrupting the second buffer of a fragment.

This happens because demux->starting_fragment is TRUE for the first two buffers
of an encrypted fragment.  This is because the first incoming buffer isn't
actually processed, but stored away.  Because demux->pending_buffer is NULL the
very first time, demux->starting_fragment is still set to TRUE, causing the
crypto stuff to be reset again before processing the second buffer.

-- 
Configure bugmail: https://bugzilla.gnome.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the gstreamer-bugs mailing list