Recherche avancée

Médias (91)

Autres articles (55)

  • Amélioration de la version de base

    13 septembre 2013

    Jolie sélection multiple
    Le plugin Chosen permet d’améliorer l’ergonomie des champs de sélection multiple. Voir les deux images suivantes pour comparer.
    Il suffit pour cela d’activer le plugin Chosen (Configuration générale du site > Gestion des plugins), puis de configurer le plugin (Les squelettes > Chosen) en activant l’utilisation de Chosen dans le site public et en spécifiant les éléments de formulaires à améliorer, par exemple select[multiple] pour les listes à sélection multiple (...)

  • Emballe médias : à quoi cela sert ?

    4 février 2011, par

    Ce plugin vise à gérer des sites de mise en ligne de documents de tous types.
    Il crée des "médias", à savoir : un "média" est un article au sens SPIP créé automatiquement lors du téléversement d’un document qu’il soit audio, vidéo, image ou textuel ; un seul document ne peut être lié à un article dit "média" ;

  • Menus personnalisés

    14 novembre 2010, par

    MediaSPIP utilise le plugin Menus pour gérer plusieurs menus configurables pour la navigation.
    Cela permet de laisser aux administrateurs de canaux la possibilité de configurer finement ces menus.
    Menus créés à l’initialisation du site
    Par défaut trois menus sont créés automatiquement à l’initialisation du site : Le menu principal ; Identifiant : barrenav ; Ce menu s’insère en général en haut de la page après le bloc d’entête, son identifiant le rend compatible avec les squelettes basés sur Zpip ; (...)

Sur d’autres sites (4955)

  • Simple ffmpeg program has memory leaks

    31 mai 2015, par Peter

    Environment : Ubuntu 14.04

    I compiled the simple source code from ffmpeg tutorial step 1 at http://dranger.com/ffmpeg/tutorial01.html. When I run the binary through valgrind, it reports a bunch of memory leaks. Here is one example :

    ==30270== 389,824 bytes in 1 blocks are possibly lost in loss record 8 of 8
    ==30270==    at 0x4C2D110: memalign (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
    ==30270==    by 0x4C2D227: posix_memalign (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
    ==30270==    by 0x9AEDAD: av_malloc (mem.c:81)
    ==30270==    by 0x9AEEFD: av_mallocz (mem.c:207)
    ==30270==    by 0x74E70F: avcodec_get_context_defaults3 (options.c:102)i
    ==30270==    by 0x74E775: avcodec_alloc_context3 (options.c:130)
    ==30270==    by 0x449737: main (test1.cpp:106)

    Here is the snippet from test1.cpp at line 106 :

    pCodecCtx = avcodec_alloc_context3(pCodec);
    if(avcodec_copy_context(pCodecCtx, pCodecCtxOrig) != 0) {
       fprintf(stderr, "Couldn't copy codec context");
       return -1; // Error copying codec context
    }

    Before the main function returns, it does close the contexts :

    avcodec_close(pCodecCtx);
    avcodec_close(pCodecCtxOrig);
    ...
    return 0;

    Is there something else that need to be done to ensure proper memory release ?

    For those interested, the source file can be downloaded from the link I mentioned. Regards.

  • avcodec/movtextdec : Fix leaks of strings upon reallocation failure

    17 octobre 2020, par Andreas Rheinhardt
    avcodec/movtextdec : Fix leaks of strings upon reallocation failure
    

    Up until now, the 3GPP Timed Text decoder used av_dynarray_add()
    for a list of font entries, a structure which contains an allocated
    string. The font entries are owned by the pointers in the dynamic array
    and are therefore unsuitable for av_dynarray_add() which simply frees
    the array, but not the font entries and of course not the strings. The
    latter all leak if reallocating the dynamic array fails.

    This commit fixes this. It stops reallocating the array altogether :
    After all, the final number of elements (pending errors) is already
    known in advance.

    Furthermore, the font entries are now the entries of the new array,
    i.e. the font entries 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
  • avdevice/dshow : Fixed some minor memory leaks

    3 janvier 2019, par Oliver Collyer
    avdevice/dshow : Fixed some minor memory leaks
    

    Signed-off-by : James Almer <jamrial@gmail.com>

    • [DH] libavdevice/dshow.c
    • [DH] libavdevice/dshow_pin.c