Recherche avancée

Médias (10)

Mot : - Tags -/wav

Autres articles (66)

  • Configurer la prise en compte des langues

    15 novembre 2010, par

    Accéder à la configuration et ajouter des langues prises en compte
    Afin de configurer la prise en compte de nouvelles langues, il est nécessaire de se rendre dans la partie "Administrer" du site.
    De là, dans le menu de navigation, vous pouvez accéder à une partie "Gestion des langues" permettant d’activer la prise en compte de nouvelles langues.
    Chaque nouvelle langue ajoutée reste désactivable tant qu’aucun objet n’est créé dans cette langue. Dans ce cas, elle devient grisée dans la configuration et (...)

  • D’autres logiciels intéressants

    12 avril 2011, par

    On ne revendique pas d’être les seuls à faire ce que l’on fait ... et on ne revendique surtout pas d’être les meilleurs non plus ... Ce que l’on fait, on essaie juste de le faire bien, et de mieux en mieux...
    La liste suivante correspond à des logiciels qui tendent peu ou prou à faire comme MediaSPIP ou que MediaSPIP tente peu ou prou à faire pareil, peu importe ...
    On ne les connais pas, on ne les a pas essayé, mais vous pouvez peut être y jeter un coup d’oeil.
    Videopress
    Site Internet : (...)

  • La sauvegarde automatique de canaux SPIP

    1er avril 2010, par

    Dans le cadre de la mise en place d’une plateforme ouverte, il est important pour les hébergeurs de pouvoir disposer de sauvegardes assez régulières pour parer à tout problème éventuel.
    Pour réaliser cette tâche on se base sur deux plugins SPIP : Saveauto qui permet une sauvegarde régulière de la base de donnée sous la forme d’un dump mysql (utilisable dans phpmyadmin) mes_fichiers_2 qui permet de réaliser une archive au format zip des données importantes du site (les documents, les éléments (...)

Sur d’autres sites (6502)

  • avformat/dashdec : Fix leak of string on error when parsing representation

    19 septembre 2020, par Andreas Rheinhardt
    avformat/dashdec : Fix leak of string on error when parsing representation
    

    The DASH demuxer currently extracts several strings at once from an xml
    document before processing them one by one ; these strings are allocated,
    stored in local variables and need to be freed by the demuxer itself.
    So if an error happens when processing one of them, all strings need to
    be freed before returning. This has simply not been done, leading to
    leaks.

    A simple fix would be to add the necessary code for freeing ; yet there is
    a better solution : Avoid having several strings at the same time by
    extracting a string, processing it and immediately freeing it. That way
    one only has to free at most one string on error.

    Reviewed-by : Steven Liu <lq@chinaffmpeg.org>
    Signed-off-by : Andreas Rheinhardt <andreas.rheinhardt@gmail.com>

    • [DH] libavformat/dashdec.c
  • avformat/hlsenc : Fix leak of options when initializing muxing fails

    16 décembre 2019, par Andreas Rheinhardt
    avformat/hlsenc : Fix leak of options when initializing muxing fails
    

    hls_mux_init() currently leaks an AVDictionary if opening a dynamic
    buffer fails or if avformat_init_output fails. This has been fixed by
    moving the initialization resp. the freeing of the dictionary around :
    In the former case to a place after opening the dynamic buffer, in the
    latter to a place before the check for initialization failure so that it
    is done unconditionally.

    Furthermore, the dictionary is now only copied and freed if the options
    in it are actually used (namely when in SEGMENT_TYPE_FMP4 mode).

    Finally, a similar situation in hls_start() has been fixed, too.

    Signed-off-by : Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
    Reviewed-by : Steven Liu <lq@onvideo.cn>

    • [DH] libavformat/hlsenc.c
  • OpenCV Mat to ffmpeg AVPicture conversion memory leak

    13 août 2015, par Pavel

    I have next code :

    void matToAvPicture(cv::Mat frame, AVPicture *picture)
    {
       cv::resize(frame, frame, cv::Size(m_streamWidth, m_streamHeight));
       uint8_t* buf = (uint8_t*)malloc(avpicture_get_size(AV_PIX_FMT_BGR24, m_streamWidth, m_streamHeight)); // 3 bytes per pixel
       for(int i = 0; i &lt; m_streamHeight; i++)
       {
           memcpy(&amp;(buf[i * m_streamWidth * 3]), &amp;(frame.data[i * frame.step]), m_streamWidth * 3);
       }
       AVPicture bgrPicture;
       avpicture_alloc(&amp;bgrPicture, AV_PIX_FMT_BGR24, m_streamWidth, m_streamHeight);
       avpicture_fill(&amp;bgrPicture, buf, AV_PIX_FMT_BGR24, m_streamWidth, m_streamHeight);
       sws_scale(rgbToYuvContext, (const uint8_t * const *)bgrPicture.data, bgrPicture.linesize, 0, m_streamHeight, picture->data, picture->linesize);
       avpicture_free(&amp;bgrPicture);
    //    free(buf);
    }

    But call of avpicture_free(&amp;bgrPicture) doesn’t free memory completely. If I commented line avpicture_fill(&amp;bgrPicture, buf, AV_PIX_FMT_BGR24, m_streamWidth, m_streamHeight); and uncommented line
    free(buf)
    memory leak doesn’t appear.
    What is the problem ?