changeset 2946:f90a2a21d5f6 libavformat

remove unused crypto context uid
author bcoudurier
date Sat, 19 Jan 2008 16:18:32 +0000
parents 670945e9899d
children cdfb199be537
files mxf.c
diffstat 1 files changed, 1 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/mxf.c	Sat Jan 19 16:17:39 2008 +0000
+++ b/mxf.c	Sat Jan 19 16:18:32 2008 +0000
@@ -67,7 +67,6 @@
 typedef struct {
     UID uid;
     enum MXFMetadataSetType type;
-    UID context_uid;
     UID source_container_ul;
 } MXFCryptoContext;
 
@@ -179,7 +178,6 @@
 static const uint8_t mxf_essence_element_key[]             = { 0x06,0x0e,0x2b,0x34,0x01,0x02,0x01,0x01,0x0d,0x01,0x03,0x01 };
 static const uint8_t mxf_klv_key[]                         = { 0x06,0x0e,0x2b,0x34 };
 /* complete keys to match */
-static const uint8_t mxf_crypto_context_uid[]              = { 0x06,0x0e,0x2b,0x34,0x01,0x01,0x01,0x09,0x01,0x01,0x15,0x11,0x00,0x00,0x00,0x00 };
 static const uint8_t mxf_crypto_source_container_ul[]      = { 0x06,0x0e,0x2b,0x34,0x01,0x01,0x01,0x09,0x06,0x01,0x01,0x02,0x02,0x00,0x00,0x00 };
 static const uint8_t mxf_encrypted_triplet_key[]           = { 0x06,0x0e,0x2b,0x34,0x02,0x04,0x01,0x07,0x0d,0x01,0x03,0x01,0x02,0x7e,0x01,0x00 };
 static const uint8_t mxf_encrypted_essence_container[]     = { 0x06,0x0e,0x2b,0x34,0x04,0x01,0x01,0x07,0x0d,0x01,0x03,0x01,0x02,0x0b,0x01,0x00 };
@@ -405,9 +403,7 @@
 {
     if (size != 16)
         return -1;
-    if (IS_KLV_KEY(uid, mxf_crypto_context_uid))
-        get_buffer(pb, cryptocontext->context_uid, 16);
-    else if (IS_KLV_KEY(uid, mxf_crypto_source_container_ul))
+    if (IS_KLV_KEY(uid, mxf_crypto_source_container_ul))
         get_buffer(pb, cryptocontext->source_container_ul, 16);
     return 0;
 }