
Recherche avancée
Médias (1)
-
The pirate bay depuis la Belgique
1er avril 2013, par
Mis à jour : Avril 2013
Langue : français
Type : Image
Autres articles (40)
-
Other interesting software
13 avril 2011, parWe 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, parCertains 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, parMediaspip 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 Rheinhardtavformat/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>
-
avformat : call AVOutputFormat->deinit() when freeing the context
19 octobre 2019, par James Almeravformat : 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>
-
FFMPEG c++ memory leak issue when reading the packet
19 novembre 2020, par santoshI have written a program to read the frames from a video file. Everything works perfect except below described issue.
after reading the frame, when I call avcode_send_packet function, it leaks the memory.
I used av_packet_unref before reading the next frame. But still the memory leak is not resolved.
I am using FFMPEG latest 4.3 version on WIndows 10.


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.


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


----------------- code is as below-----------------------
... here code related to setting avformatcontext, and avcodeccontext.


while(1)
 {
 if (av_read_frame(pFormatCtx, packet) >= 0)
 {
 if (packet->stream_index == videoindex)
 {

 ret = avcodec_send_packet(pCodecCtx, packet);//on executing this line, memory shoots up in MBs , everytime.
 if (ret < 0)
 {
 av_packet_unref(packet);
 fprintf(stderr,"Failed to Decode packet. \n:%s", av_err2str(ret));
 return -1;
 }

 ret = avcodec_receive_frame(pCodecCtx, pAvFrame);
 if (ret == AVERROR(EAGAIN) || ret == AVERROR_EOF)
 {
 av_packet_unref(packet);
 continue;
 }
 if (ret < 0)
 {
 av_packet_unref(packet);
 printf("Failed to Decode packet. \n");
 return -1;
 }
 av_packet_unref(packet);

 
 {
 //.. do something with the frame.
 }
 av_frame_unref(pAvFrame);

 }
 
 av_packet_unref(packet);
 }
}