static void mxf_write_generic_desc(ByteIOContext *pb, const MXFDescriptorWriteTableEntry *desc_tbl, AVStream *st)

{

    const MXFCodecUL *codec_ul;



    put_buffer(pb, desc_tbl->key, 16);

    klv_encode_ber_length(pb, 108);



    mxf_write_local_tag(pb, 16, 0x3C0A);

    mxf_write_uuid(pb, SubDescriptor, st->index);



    mxf_write_local_tag(pb, 4, 0x3006);

    put_be32(pb, st->index);



    mxf_write_local_tag(pb, 8, 0x3001);

    put_be32(pb, st->time_base.den);

    put_be32(pb, st->time_base.num);



    codec_ul = mxf_get_essence_container_ul(st->codec->codec_id);

    mxf_write_local_tag(pb, 16, 0x3004);

    put_buffer(pb, codec_ul->uid, 16);

}

static void mxf_write_generic_desc(ByteIOContext *pb, const MXFDescriptorWriteTableEntry *desc_tbl, AVStream *st)

{

    const MXFCodecUL *codec_ul;



    put_buffer(pb, desc_tbl->key, 16);

    klv_encode_ber_length(pb, 108);



    mxf_write_local_tag(pb, 16, 0x3C0A);

    mxf_write_uuid(pb, SubDescriptor, st->index);



    mxf_write_local_tag(pb, 4, 0x3006);

    put_be32(pb, st->index);



    mxf_write_local_tag(pb, 8, 0x3001);

    put_be32(pb, st->time_base.den);

    put_be32(pb, st->time_base.num);



    codec_ul = mxf_get_essence_container_ul(st->codec->codec_id);

    mxf_write_local_tag(pb, 16, 0x3004);

    put_buffer(pb, codec_ul->uid, 16);

}

static void FUNC_0(ByteIOContext *VAR_0, const MXFDescriptorWriteTableEntry *VAR_1, AVStream *VAR_2)

{

    const MXFCodecUL *VAR_3;



    put_buffer(VAR_0, VAR_1->key, 16);

    klv_encode_ber_length(VAR_0, 108);



    mxf_write_local_tag(VAR_0, 16, 0x3C0A);

    mxf_write_uuid(VAR_0, SubDescriptor, VAR_2->index);



    mxf_write_local_tag(VAR_0, 4, 0x3006);

    put_be32(VAR_0, VAR_2->index);



    mxf_write_local_tag(VAR_0, 8, 0x3001);

    put_be32(VAR_0, VAR_2->time_base.den);

    put_be32(VAR_0, VAR_2->time_base.num);



    VAR_3 = mxf_get_essence_container_ul(VAR_2->codec->codec_id);

    mxf_write_local_tag(VAR_0, 16, 0x3004);

    put_buffer(VAR_0, VAR_3->uid, 16);

}

static void FUNC_0(ByteIOContext *VAR_0, const MXFDescriptorWriteTableEntry *VAR_1, AVStream *VAR_2)
{ const MXFCodecUL *VAR_3; put_buffer(VAR_0, VAR_1->key, 16); klv_encode_ber_length(VAR_0, 108); mxf_write_local_tag(VAR_0, 16, 0x3C0A); mxf_write_uuid(VAR_0, SubDescriptor, VAR_2->index); mxf_write_local_tag(VAR_0, 4, 0x3006); put_be32(VAR_0, VAR_2->index); mxf_write_local_tag(VAR_0, 8, 0x3001); put_be32(VAR_0, VAR_2->time_base.den); put_be32(VAR_0, VAR_2->time_base.num); VAR_3 = mxf_get_essence_container_ul(VAR_2->codec->codec_id); mxf_write_local_tag(VAR_0, 16, 0x3004); put_buffer(VAR_0, VAR_3->uid, 16); }