changeset 1653:94d01c5f0ffe libavformat

remove useless preface parsing for now, will reintroduce it if needed
author bcoudurier
date Sun, 14 Jan 2007 23:31:30 +0000
parents d8807a8435ab
children 9743c9db2c5a
files mxf.c
diffstat 1 files changed, 0 insertions(+), 27 deletions(-) [+]
line wrap: on
line diff
--- a/mxf.c	Sun Jan 14 23:23:06 2007 +0000
+++ b/mxf.c	Sun Jan 14 23:31:30 2007 +0000
@@ -135,10 +135,6 @@
     int packages_count;
     UID *essence_container_data_sets_refs;
     int essence_container_data_sets_count;
-    UID *essence_containers_uls; /* Universal Labels SMPTE RP224 */
-    int essence_containers_uls_count;
-    UID operational_pattern_ul;
-    UID content_storage_uid;
     MXFMetadataSet **metadata_sets;
     int metadata_sets_count;
     const uint8_t *sync_key;
@@ -300,27 +296,6 @@
     return 0;
 }
 
-static int mxf_read_metadata_preface(MXFContext *mxf, ByteIOContext *pb, int tag)
-{
-    switch (tag) {
-    case 0x3B03:
-        get_buffer(pb, mxf->content_storage_uid, 16);
-        break;
-    case 0x3B09:
-        get_buffer(pb, mxf->operational_pattern_ul, 16);
-        break;
-    case 0x3B0A:
-        mxf->essence_containers_uls_count = get_be32(pb);
-        if (mxf->essence_containers_uls_count >= UINT_MAX / sizeof(UID))
-            return -1;
-        mxf->essence_containers_uls = av_malloc(mxf->essence_containers_uls_count * sizeof(UID));
-        url_fskip(pb, 4); /* useless size of objects, always 16 according to specs */
-        get_buffer(pb, (uint8_t *)mxf->essence_containers_uls, mxf->essence_containers_uls_count * sizeof(UID));
-        break;
-    }
-    return 0;
-}
-
 static int mxf_read_metadata_content_storage(MXFContext *mxf, ByteIOContext *pb, int tag)
 {
     switch (tag) {
@@ -780,7 +755,6 @@
 }
 
 static const MXFMetadataReadTableEntry mxf_metadata_read_table[] = {
-    { { 0x06,0x0E,0x2B,0x34,0x02,0x53,0x01,0x01,0x0d,0x01,0x01,0x01,0x01,0x01,0x2F,0x00 }, mxf_read_metadata_preface, 0, AnyType },
     { { 0x06,0x0E,0x2B,0x34,0x02,0x53,0x01,0x01,0x0d,0x01,0x01,0x01,0x01,0x01,0x18,0x00 }, mxf_read_metadata_content_storage, 0, AnyType },
     { { 0x06,0x0E,0x2B,0x34,0x02,0x53,0x01,0x01,0x0d,0x01,0x01,0x01,0x01,0x01,0x37,0x00 }, mxf_read_metadata_source_package, sizeof(MXFPackage), SourcePackage },
     { { 0x06,0x0E,0x2B,0x34,0x02,0x53,0x01,0x01,0x0d,0x01,0x01,0x01,0x01,0x01,0x36,0x00 }, mxf_read_metadata_material_package, sizeof(MXFPackage), MaterialPackage },
@@ -887,7 +861,6 @@
 
     av_freep(&mxf->packages_refs);
     av_freep(&mxf->essence_container_data_sets_refs);
-    av_freep(&mxf->essence_containers_uls);
     for (i = 0; i < mxf->metadata_sets_count; i++) {
         switch (mxf->metadata_sets[i]->type) {
         case MultipleDescriptor: