qtdemux: No need for new "application/x-cbcs" caps
authorYacine Bandou <yacine.bandou@softathome.com>
Mon, 21 Jun 2021 11:47:50 +0000 (13:47 +0200)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Tue, 6 Jul 2021 12:12:24 +0000 (12:12 +0000)
commitce0be27caf69aa9d96b73bc2b50737451b6f6936
tree8e5a655febd6b449e7033fc79c20248994550eba
parent304a75a67a7f036ac18e30e1b36dcda527f5b004
qtdemux: No need for new "application/x-cbcs" caps

Instead of using the new "application/x-cbcs" caps, we are just adding
a new structure field "ciphe-mode", to indicate which encryption scheme
is used: "cenc", "cbcs", "cbc1" or "cens".

Similarly for the protection metadata, we add the "cipher-mode" field
to specify the encryption mode with which the buffers are encrypted.

"cenc": AES-CTR (no pattern)
"cbc1": AES-CBC (no pattern)
"cens": AES-CTR (pattern specified)
"cbcs": AES-CBC (pattern specified, using a constant IV)

Currently only "cenc" and "cbcs" are supported.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/merge_requests/1013>
gst/isomp4/qtdemux.c