Recherche avancée

Médias (1)

Mot : - Tags -/censure

Autres articles (75)

  • Multilang : améliorer l’interface pour les blocs multilingues

    18 février 2011, par

    Multilang est un plugin supplémentaire qui n’est pas activé par défaut lors de l’initialisation de MediaSPIP.
    Après son activation, une préconfiguration est mise en place automatiquement par MediaSPIP init permettant à la nouvelle fonctionnalité d’être automatiquement opérationnelle. Il n’est donc pas obligatoire de passer par une étape de configuration pour cela.

  • Emballe médias : à quoi cela sert ?

    4 février 2011, par

    Ce plugin vise à gérer des sites de mise en ligne de documents de tous types.
    Il crée des "médias", à savoir : un "média" est un article au sens SPIP créé automatiquement lors du téléversement d’un document qu’il soit audio, vidéo, image ou textuel ; un seul document ne peut être lié à un article dit "média" ;

  • Submit bugs and patches

    13 avril 2011

    Unfortunately a software is never perfect.
    If you think you have found a bug, report it using our ticket system. Please to help us to fix it by providing the following information : the browser you are using, including the exact version as precise an explanation as possible of the problem if possible, the steps taken resulting in the problem a link to the site / page in question
    If you think you have solved the bug, fill in a ticket and attach to it a corrective patch.
    You may also (...)

Sur d’autres sites (5860)

  • Incompatible Pointer Type Error, sws_scale, ffmpeg

    28 septembre 2011, par James Felix Black

    My code is very straightforward ; it consumes YUV420P data, resizes it, and produces a PNG or JPEG image (OS X Lion, Apple's gcc 4.2.1). It works fine ; I'm using ffmpeg (HEAD, as of mumble days ago), but when running in -pedantic-errors mode (which I like to do from time to time) :

    zc_libav.c:30: error: passing argument 2 of ‘sws_scale’ from incompatible pointer type

    Ouch ! Well, what's my code look like ?

    sws_scale(sws_ctx,
             in_pic->data,
             in_pic->linesize,
             0,
             in->y,
             out_pic->data,
             out_pic->linesize);

    (You can assume for the sake of argument that the in_pic and out_pic AVPicture structures have been properly initialized, as the code works).

    Well, what're the offending data types ?

    from libswscale/swscale.h :

    int sws_scale(struct SwsContext *c, const uint8_t* const srcSlice[], …

    from libavcodec/avcodec.h

    typedef struct AVPicture {
     uint8_t *data[4];
     int linesize[4];       ///< number of bytes per line
    } AVPicture;

    As I noted above, when I change -pedantic-errors to -pedantic, I get the same complaint, but the code compiles and runs correctly. For my own neurotic sanity, is there any way to get the advantages of -pedantic-errors and, you know, compile this code ?

  • mpegvideo_probe : dont be too picky on spec compliance and the lack of system startcodes.

    8 novembre 2011, par Michael Niedermayer

    mpegvideo_probe : dont be too picky on spec compliance and the lack of system startcodes.

  • smackaud : use uint8_t* for 8-bit output buffer type

    9 novembre 2011, par Justin Ruggles

    smackaud : use uint8_t* for 8-bit output buffer type