Recherche avancée

Médias (91)

Autres articles (44)

  • Other interesting software

    13 avril 2011, par

    We don’t claim to be the only ones doing what we do ... and especially not to assert claims to be the best either ... What we do, we just try to do it well and getting better ...
    The following list represents softwares that tend to be more or less as MediaSPIP or that MediaSPIP tries more or less to do the same, whatever ...
    We don’t know them, we didn’t try them, but you can take a peek.
    Videopress
    Website : http://videopress.com/
    License : GNU/GPL v2
    Source code : (...)

  • Personnaliser en ajoutant son logo, sa bannière ou son image de fond

    5 septembre 2013, par

    Certains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;

  • Soumettre améliorations et plugins supplémentaires

    10 avril 2011

    Si vous avez développé une nouvelle extension permettant d’ajouter une ou plusieurs fonctionnalités utiles à MediaSPIP, faites le nous savoir et son intégration dans la distribution officielle sera envisagée.
    Vous pouvez utiliser la liste de discussion de développement afin de le faire savoir ou demander de l’aide quant à la réalisation de ce plugin. MediaSPIP étant basé sur SPIP, il est également possible d’utiliser le liste de discussion SPIP-zone de SPIP pour (...)

Sur d’autres sites (7480)

  • ffmpeg(libavcodec). memory leaks in avcodec_encode_video

    31 mars 2012, par gavlig

    I'm trying to transcode a video with help of libavcodec.
    On transcoding big video files(hour or more) i get huge memory leaks in avcodec_encode_video. I have tried to debug it, but with different video files different functions produce leaks, i have got a little bit confused about that :). Here FFMPEG with QT memory leak is the same issue that i have, but i have no idea how did that person solve it. QtFFmpegwrapper seems to do the same i do(or i missed something).

    my method is lower. I took care about aFrame and aPacket outside with av_free and av_free_packet.

    int
    Videocut::encode(
    AVStream *anOutputStream,
    AVFrame *aFrame,
    AVPacket *aPacket
    )
    {
    AVCodecContext *outputCodec = anOutputStream->codec;

    if (!anOutputStream ||
       !aFrame ||
       !aPacket)
    {
       return 1;
       /* NOTREACHED */
    }

    uint8_t * buffer = (uint8_t *)malloc(
       sizeof(uint8_t) * _DefaultEncodeBufferSize
       );

       if (NULL == buffer) {
           return 2;
           /* NOTREACHED */
    }

    int packetSize = avcodec_encode_video(
       outputCodec,
           buffer,
           _DefaultEncodeBufferSize,
           aFrame
       );

    if (packetSize < 0) {
       free(buffer);
       return 1;
       /* NOTREACHED */
    }

    aPacket->data = buffer;
    aPacket->size = packetSize;

    return 0;
    }
  • avcodec/movtextdec : Fix leaks on (re)allocation failure

    17 octobre 2020, par Andreas Rheinhardt
    avcodec/movtextdec : Fix leaks on (re)allocation failure
    

    Up until now, the 3GPP Timed Text decoder used av_dynarray_add()
    for a list of style entries. Said entries are individually allocated
    and owned by the pointers in the dynamic array and are therefore
    unsuitable for av_dynarray_add() which simply frees the array,
    but not the entries on error. In this case the intended new entry
    also leaks because it has been forgotten to free it.

    This commit fixes this. It is now allocated in one go and not
    reallocated multiple times (and it won't be overallocated any more).
    After all, the final number of elements (pending errors) is already
    known in advance.

    Furthermore, the style entries are now the entries of the new array,
    i.e. they are no longer allocated separately. This also removes one
    level of indirection.

    Reviewed-by : Philip Langdale <philipl@overt.org>
    Signed-off-by : Andreas Rheinhardt <andreas.rheinhardt@gmail.com>

    • [DH] libavcodec/movtextdec.c
  • avformat/iamf_writer : Fix leaks on error

    19 février 2024, par Andreas Rheinhardt
    avformat/iamf_writer : Fix leaks on error
    

    Fixes Coverity issues #1559544 and #1559547.

    Reviewed-by : James Almer <jamrial@gmail.com>
    Signed-off-by : Andreas Rheinhardt <andreas.rheinhardt@outlook.com>

    • [DH] libavformat/iamf_writer.c