
Recherche avancée
Autres articles (109)
-
Des sites réalisés avec MediaSPIP
2 mai 2011, parCette page présente quelques-uns des sites fonctionnant sous MediaSPIP.
Vous pouvez bien entendu ajouter le votre grâce au formulaire en bas de page. -
Soumettre bugs et patchs
10 avril 2011Un logiciel n’est malheureusement jamais parfait...
Si vous pensez avoir mis la main sur un bug, reportez le dans notre système de tickets en prenant bien soin de nous remonter certaines informations pertinentes : le type de navigateur et sa version exacte avec lequel vous avez l’anomalie ; une explication la plus précise possible du problème rencontré ; si possibles les étapes pour reproduire le problème ; un lien vers le site / la page en question ;
Si vous pensez avoir résolu vous même le bug (...) -
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 (8171)
-
Why is get_frame_defaults in libavutil an internal function ?
11 janvier 2024, par zhangSee the following code from https://ffmpeg.org/doxygen/trunk/frame_8c_source.html#l00622 :


static void get_frame_defaults(AVFrame *frame)
 {
 memset(frame, 0, sizeof(*frame));
 
 frame->pts =
 frame->pkt_dts = AV_NOPTS_VALUE;
 frame->best_effort_timestamp = AV_NOPTS_VALUE;
 frame->duration = 0;
 #if FF_API_PKT_DURATION
 FF_DISABLE_DEPRECATION_WARNINGS
 frame->pkt_duration = 0;
 FF_ENABLE_DEPRECATION_WARNINGS
 #endif
 #if FF_API_FRAME_PKT
 FF_DISABLE_DEPRECATION_WARNINGS
 frame->pkt_pos = -1;
 frame->pkt_size = -1;
 FF_ENABLE_DEPRECATION_WARNINGS
 #endif
 frame->time_base = (AVRational){ 0, 1 };
 frame->sample_aspect_ratio = (AVRational){ 0, 1 };
 frame->format = -1; /* unknown */
 frame->extended_data = frame->data;
 frame->color_primaries = AVCOL_PRI_UNSPECIFIED;
 frame->color_trc = AVCOL_TRC_UNSPECIFIED;
 frame->colorspace = AVCOL_SPC_UNSPECIFIED;
 frame->color_range = AVCOL_RANGE_UNSPECIFIED;
 frame->chroma_location = AVCHROMA_LOC_UNSPECIFIED;
 frame->flags = 0;
 }



You can see the get_frame_defaults function is marked as static, so not callable from other files. The only way to initialize AVFrame is via av_frame_alloc (plus av_frame_unref and av_frame_move_ref which operated on already initialized AVFrame), which allocates AVFrame in heap.


So there are no native method to initialize non-dynamically-allocated AVFrame object.


By comparison, libavcodec has a similar function av_init_packet which is public, and can be called for AVPacket object created elsewhere (e.g. on stack).


-
avcodec/jpeg2000htdec : check if block decoding will exceed internal precision
12 août 2023, par Pierre-Anthony Lemieuxavcodec/jpeg2000htdec : check if block decoding will exceed internal precision
Intended to replace https://patchwork.ffmpeg.org/project/ffmpeg/patch/20230802000135.26482-3-michael@niedermayer.cc/
with a more accurate block decoding magnitude bound.Fixes : 62433/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_JPEG2000_fuzzer-5828618092937216
Fixes : 58299/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_JPEG2000_fuzzer-5828618092937216
Previous-version-reviewed-by : Tomas Härdin <git@haerdin.se>
Signed-off-by : Michael Niedermayer <michael@niedermayer.cc> -
avfilter : no need to request more samples if internal frame is available
28 novembre 2023, par Paul B Mahol