
Recherche avancée
Autres articles (9)
-
Les statuts des instances de mutualisation
13 mars 2010, parPour des raisons de compatibilité générale du plugin de gestion de mutualisations avec les fonctions originales de SPIP, les statuts des instances sont les mêmes que pour tout autre objets (articles...), seuls leurs noms dans l’interface change quelque peu.
Les différents statuts possibles sont : prepa (demandé) qui correspond à une instance demandée par un utilisateur. Si le site a déjà été créé par le passé, il est passé en mode désactivé. publie (validé) qui correspond à une instance validée par un (...) -
L’espace de configuration de MediaSPIP
29 novembre 2010, parL’espace de configuration de MediaSPIP est réservé aux administrateurs. Un lien de menu "administrer" est généralement affiché en haut de la page [1].
Il permet de configurer finement votre site.
La navigation de cet espace de configuration est divisé en trois parties : la configuration générale du site qui permet notamment de modifier : les informations principales concernant le site (...) -
Selection of projects using MediaSPIP
2 mai 2011, parThe examples below are representative elements of MediaSPIP specific uses for specific projects.
MediaSPIP farm @ Infini
The non profit organizationInfini develops hospitality activities, internet access point, training, realizing innovative projects in the field of information and communication technologies and Communication, and hosting of websites. It plays a unique and prominent role in the Brest (France) area, at the national level, among the half-dozen such association. Its members (...)
Sur d’autres sites (1076)
-
libavdevice/v4l2 : fix invalid access to struct v4l2_buffer
20 septembre 2017, par Jaroslav Beranlibavdevice/v4l2 : fix invalid access to struct v4l2_buffer
In case we are short of queued buffers, at first v4l2_buffer was enqueued to kernel so it's not owned by
user-space anymore. After that it's timestamp field was read, but it might be overwritten by driver at
that moment. It resulted in invalid timestamp sometimes.Signed-off-by : Michael Niedermayer <michael@niedermayer.cc>
-
FFmpeg dxva2 H264 decoder reinitialize codec - access violation
18 janvier 2023, par SpurigaI have a small project which decodes h264 I frame (SPS+PPS in extradata).
It uses "dxva2" hw acceleration and works fine until I reinitialize the codec. This can be occured when an rtsp stream change the format. Fe. : h264 to h264H. and the extradata must be changed.


The extradata modifying code is :


...

 ret = decode_write(decoder_ctx, packet); //GOOD 
 ret = decode_write(decoder_ctx, NULL);

 if (avcodec_close(decoder_ctx) < 0)
 return -2;

 if (hw_decoder_init(decoder_ctx, type) < 0)
 return -1;

 if ((ret = avcodec_open2(decoder_ctx, decoder, NULL)) < 0) {
 fprintf(stderr, "Failed to open codec for stream.\n");
 return -1;
 }

 ret = decode_write(decoder_ctx, packet); //ACCESS VIOLATION
 ret = decode_write(decoder_ctx, NULL);



The next
avcodec_send_packet
goes access violation exception.
When I switch off the HW acceleration and fallback to CPU this change is works fine.

So the only problem when I use dxva2 and reinitialize the codec.


The extradata change code is not in this small example, because the error reason is the reinitialize.


-
avformat/movenc : Use dedicated pointer for access to MOVTrack
16 décembre 2021, par Andreas Rheinhardtavformat/movenc : Use dedicated pointer for access to MOVTrack
Improves readability and slightly decreases codesize.
While just at it, also remove a check whether the packet list is
nonempty before freeing it, as freeing an empty list is fine
and basically a no-op.Signed-off-by : Andreas Rheinhardt <andreas.rheinhardt@outlook.com>