Recherche avancée

Médias (1)

Mot : - Tags -/censure

Autres articles (90)

  • Creating farms of unique websites

    13 avril 2011, par

    MediaSPIP platforms can be installed as a farm, with a single "core" hosted on a dedicated server and used by multiple websites.
    This allows (among other things) : implementation costs to be shared between several different projects / individuals rapid deployment of multiple unique sites creation of groups of like-minded sites, making it possible to browse media in a more controlled and selective environment than the major "open" (...)

  • Le profil des utilisateurs

    12 avril 2011, par

    Chaque utilisateur dispose d’une page de profil lui permettant de modifier ses informations personnelle. Dans le menu de haut de page par défaut, un élément de menu est automatiquement créé à l’initialisation de MediaSPIP, visible uniquement si le visiteur est identifié sur le site.
    L’utilisateur a accès à la modification de profil depuis sa page auteur, un lien dans la navigation "Modifier votre profil" est (...)

  • Des sites réalisés avec MediaSPIP

    2 mai 2011, par

    Cette page présente quelques-uns des sites fonctionnant sous MediaSPIP.
    Vous pouvez bien entendu ajouter le votre grâce au formulaire en bas de page.

Sur d’autres sites (10245)

  • How to send AVPacket through a QTcpSocket.write() with all of its data ?

    24 juin 2024, par CottonBuds

    I want to send an AVPacket though a QTcpSocket.write() I tried to cast the avpacket pointer to an char * but it only shows 8 bytes of the avpacket and without the avpacket.data.

    


    enter image description here

    


    here is my code

    


    void DisplayStreamServer::sendDataToClient(AVPacket* packet) {
    if (client == nullptr) {
        return;
    }


    client->write((char*) packet);
    client->waitForBytesWritten();

    av_packet_unref(packet);
    av_packet_free(&packet);
}


    


    I can see that my packet.data has data inside it using the visual studio memory viewer. but it seems like when i convert the packet to char * the data is not included

    


    enter image description here

    


  • avcodec/smacker : Use unsigned for prediction values

    26 juin 2020, par Andreas Rheinhardt
    avcodec/smacker : Use unsigned for prediction values
    

    Up until now, the Smacker decoder has pretended that the prediction
    values are signed in code like 'pred[0] += (unsigned)sign_extend(val, 16)'
    (the cast has been added to this code later to fix undefined behaviour).
    This has been even done in case the PCM format is u8.

    Yet in case of 8/16 bit samples, only the lower 8/16 bit of the predicition
    values are ever used, so one can just as well just use unsigned and
    remove the sign extensions. This is what this commit does.

    For GCC 9 the time for one call to smka_decode_frame() for the sample from
    ticket #2425 decreased from 1709043 to 1693619 decicycles ; for Clang 9
    it went up from 1355273 to 1369089 decicycles.

    Reviewed-by : Paul B Mahol <onemda@gmail.com>
    Signed-off-by : Andreas Rheinhardt <andreas.rheinhardt@gmail.com>

    • [DH] libavcodec/smacker.c
  • qt-faststart : Avoid unintentionally sign extending BE_32

    28 février 2014, par Martin Storsjö
    qt-faststart : Avoid unintentionally sign extending BE_32
    

    Without this cast, the BE_32() expression is sign extended when
    assigned to an uint64_t, since the uint8_t|uint8_t expression
    is promoted to an int.

    Also avoid undefined behaviour when left shifting an uint8_t
    by 24 by casting it to an uint32_t explicitly before shifting.

    Based on a patch by Michael Niedermayer.

    Signed-off-by : Martin Storsjö <martin@martin.st>

    • [DBH] tools/qt-faststart.c