
Recherche avancée
Médias (91)
-
999,999
26 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
The Slip - Artworks
26 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Texte
-
Demon seed (wav version)
26 septembre 2011, par
Mis à jour : Avril 2013
Langue : English
Type : Audio
-
The four of us are dying (wav version)
26 septembre 2011, par
Mis à jour : Avril 2013
Langue : English
Type : Audio
-
Corona radiata (wav version)
26 septembre 2011, par
Mis à jour : Avril 2013
Langue : English
Type : Audio
-
Lights in the sky (wav version)
26 septembre 2011, par
Mis à jour : Avril 2013
Langue : English
Type : Audio
Autres articles (64)
-
Pas question de marché, de cloud etc...
10 avril 2011Le vocabulaire utilisé sur ce site essaie d’éviter toute référence à la mode qui fleurit allègrement
sur le web 2.0 et dans les entreprises qui en vivent.
Vous êtes donc invité à bannir l’utilisation des termes "Brand", "Cloud", "Marché" etc...
Notre motivation est avant tout de créer un outil simple, accessible à pour tout le monde, favorisant
le partage de créations sur Internet et permettant aux auteurs de garder une autonomie optimale.
Aucun "contrat Gold ou Premium" n’est donc prévu, aucun (...) -
Dépôt de média et thèmes par FTP
31 mai 2013, parL’outil MédiaSPIP traite aussi les média transférés par la voie FTP. Si vous préférez déposer par cette voie, récupérez les identifiants d’accès vers votre site MédiaSPIP et utilisez votre client FTP favori.
Vous trouverez dès le départ les dossiers suivants dans votre espace FTP : config/ : dossier de configuration du site IMG/ : dossier des média déjà traités et en ligne sur le site local/ : répertoire cache du site web themes/ : les thèmes ou les feuilles de style personnalisées tmp/ : dossier de travail (...) -
Activation de l’inscription des visiteurs
12 avril 2011, parIl est également possible d’activer l’inscription des visiteurs ce qui permettra à tout un chacun d’ouvrir soit même un compte sur le canal en question dans le cadre de projets ouverts par exemple.
Pour ce faire, il suffit d’aller dans l’espace de configuration du site en choisissant le sous menus "Gestion des utilisateurs". Le premier formulaire visible correspond à cette fonctionnalité.
Par défaut, MediaSPIP a créé lors de son initialisation un élément de menu dans le menu du haut de la page menant (...)
Sur d’autres sites (6091)
-
tests/fate/libavcodec : Run hashtable test
3 juin, par Andreas Rheinhardt -
avcodec/Makefile : Only compile hashtable.o when needed
3 juin, par Andreas Rheinhardt -
Replacing avcodec_decode_video/avcodec_decode_video2 with currently supported functions
18 avril 2024, par SilverstockI am trying to build a C++ program, and the creator is using depreciated functions, I have been replacing them fairly easily, but I am not totally sure how to replace these.


This is a sample from the decode file :


#if defined HAVE_AVCODEC_SEND_PACKET && defined HAVE_AVCODEC_RECEIVE_FRAME
 AVPacket* pkt = av_packet_alloc();
 if (!pkt)
 return 0;
 pkt->data=data;
 pkt->size=datalen;
 int ret = avcodec_send_packet(codecContext, pkt);
 while (ret == 0)
 {
 ret = avcodec_receive_frame(codecContext,frameIn);
 if (ret != 0)
 {
 if (ret != AVERROR(EAGAIN))
 {
 LOG(LOG_INFO,"not decoded:"<pts==(int64_t)AV_NOPTS_VALUE || frameIn->pts==0);
 if (time != UINT32_MAX)
 copyFrameToBuffers(frameIn, time);
 }
 }
#ifdef HAVE_AV_PACKET_UNREF
 av_packet_unref(pkt);
#else
 av_free_packet(pkt);
#endif
 av_packet_free(&pkt);
#else
 int frameOk=0;
#if HAVE_AVCODEC_DECODE_VIDEO2
 AVPacket pkt;
 av_init_packet(&pkt);
 pkt.data=data;
 pkt.size=datalen;
 int ret=avcodec_decode_video2(codecContext, frameIn, &frameOk, &pkt);
#else
 int ret=avcodec_decode_video(codecContext, frameIn, &frameOk, data, datalen);
#endif



I ran
emmake make
(I am building with emscripten, and all dependencies are static),

And this is my output(Trimmed for relevance) :


/workspaces/WasmFlash/lightspark/src/backends/decoder.cpp:188:3: warning: 'avcodec_close' is deprecated [-Wdeprecated-declarations]
 188 | avcodec_close(codecContext);
 | ^
/workspaces/WasmFlash/lightspark/src/backends/../../../PKGCONFIG/FFmpeg/build/include/libavcodec/avcodec.h:2386:1: note: 'avcodec_close' has been explicitly marked deprecated here
 2386 | attribute_deprecated
 | ^
/workspaces/WasmFlash/lightspark/src/backends/../../../PKGCONFIG/FFmpeg/build/include/libavcodec/../libavutil/attributes.h:100:49: note: expanded from macro 'attribute_deprecated'
 100 | # define attribute_deprecated __attribute__((deprecated))
 | ^
/workspaces/WasmFlash/lightspark/src/backends/decoder.cpp:338:2: warning: 'avcodec_close' is deprecated [-Wdeprecated-declarations]
 338 | avcodec_close(codecContext);
 | ^
/workspaces/WasmFlash/lightspark/src/backends/../../../PKGCONFIG/FFmpeg/build/include/libavcodec/avcodec.h:2386:1: note: 'avcodec_close' has been explicitly marked deprecated here
 2386 | attribute_deprecated
 | ^
/workspaces/WasmFlash/lightspark/src/backends/../../../PKGCONFIG/FFmpeg/build/include/libavcodec/../libavutil/attributes.h:100:49: note: expanded from macro 'attribute_deprecated'
 100 | # define attribute_deprecated __attribute__((deprecated))
 | ^
/workspaces/WasmFlash/lightspark/src/backends/decoder.cpp:483:10: error: use of undeclared identifier 'avcodec_decode_video'
 483 | int ret=avcodec_decode_video(codecContext, frameIn, &frameOk, data, datalen);
 | ^
/workspaces/WasmFlash/lightspark/src/backends/decoder.cpp:547:10: error: use of undeclared identifier 'avcodec_decode_video'
 547 | int ret=avcodec_decode_video(codecContext, frameIn, &frameOk, pkt->data, pkt->size);



I attempted to compile, and I expected the compilation to run without error.