Recherche avancée

Médias (1)

Mot : - Tags -/pirate bay

Autres articles (40)

  • 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 ;

  • Les autorisations surchargées par les plugins

    27 avril 2010, par

    Mediaspip core
    autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs

Sur d’autres sites (6118)

  • avformat/wavenc : Fix leak and segfault on reallocation error

    22 février 2021, par Andreas Rheinhardt
    avformat/wavenc : Fix leak and segfault on reallocation error
    

    Up until now, the wav muxer used a reallocation of the form ptr =
    av_realloc(ptr, size) ; that leaks upon error. Furthermore, if a
    failed reallocation happened when writing the trailer, a segfault
    would occur due to avio_write(NULL, size) because the muxer only
    prints an error message upon allocation error, but does not return
    the error.

    Moreover setting the pointer to the buffer to NULL on error seems to
    be done on purpose in order to record that an error has occured so that
    outputting the peak values is no longer attempted. This behaviour has
    been retained by simply disabling whether peak data should be written
    if an error occurs.

    Finally, the reallocation is now done once per peak block and not once
    per peak block per channel ; it is also done with av_fast_realloc and not
    with a linear size increase.

    Signed-off-by : Andreas Rheinhardt <andreas.rheinhardt@gmail.com>

    • [DH] libavformat/wavenc.c
  • avformat : call AVOutputFormat->deinit() when freeing the context

    19 octobre 2019, par James Almer
    avformat : call AVOutputFormat->deinit() when freeing the context
    

    Despite the doxy stating that it's called when the muxer is destroyed,
    this was not true in practice. It's only called by av_write_trailer()
    and on init() failure.

    An AVFormatContext may be closed without writing the trailer if errors
    ocurred while muxing packets, so in order to prevent memory leaks, it
    should effectively be called when freeing the muxer.

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

    • [DH] libavformat/mux.c
    • [DH] libavformat/utils.c
  • FFMPEG c++ memory leak issue when reading the packet

    19 novembre 2020, par santosh

    I have written a program to read the frames from a video file. Everything works perfect except below described issue.&#xA;after reading the frame, when I call avcode_send_packet function, it leaks the memory.&#xA;I used av_packet_unref before reading the next frame. But still the memory leak is not resolved.&#xA;I am using FFMPEG latest 4.3 version on WIndows 10.

    &#xA;

    also av_frame_unref does not fix the memory leak. I think data buffer inside the packet does not get freed somehow I feel it is related to FFMPEG version issue as I see the similar coding done by other programmers on the internet.

    &#xA;

    Does any one have idea about how to fix this memory leak ?

    &#xA;

    ----------------- code is as below-----------------------&#xA;... here code related to setting avformatcontext, and avcodeccontext.

    &#xA;

    while(1)&#xA;    {&#xA;        if (av_read_frame(pFormatCtx, packet) >= 0)&#xA;        {&#xA;            if (packet->stream_index == videoindex)&#xA;            {&#xA;&#xA;                ret = avcodec_send_packet(pCodecCtx, packet);//on executing this line, memory shoots up in MBs , everytime.&#xA;                if (ret &lt; 0)&#xA;                {&#xA;                    av_packet_unref(packet);&#xA;                    fprintf(stderr,"Failed to Decode packet. \n:%s", av_err2str(ret));&#xA;                    return -1;&#xA;                }&#xA;&#xA;                ret = avcodec_receive_frame(pCodecCtx, pAvFrame);&#xA;                if (ret == AVERROR(EAGAIN) || ret == AVERROR_EOF)&#xA;                {&#xA;                    av_packet_unref(packet);&#xA;                    continue;&#xA;                }&#xA;                if (ret &lt; 0)&#xA;                {&#xA;                    av_packet_unref(packet);&#xA;                    printf("Failed to Decode packet. \n");&#xA;                    return -1;&#xA;                }&#xA;                av_packet_unref(packet);&#xA;&#xA;                &#xA;                {&#xA;                    //.. do something with the frame.&#xA;                }&#xA;                av_frame_unref(pAvFrame);&#xA;&#xA;            }&#xA;            &#xA;            av_packet_unref(packet);&#xA;        }&#xA;}&#xA;

    &#xA;