Recherche avancée

Médias (0)

Mot : - Tags -/latitude

Aucun média correspondant à vos critères n’est disponible sur le site.

Autres articles (71)

  • Amélioration de la version de base

    13 septembre 2013

    Jolie sélection multiple
    Le plugin Chosen permet d’améliorer l’ergonomie des champs de sélection multiple. Voir les deux images suivantes pour comparer.
    Il suffit pour cela d’activer le plugin Chosen (Configuration générale du site > Gestion des plugins), puis de configurer le plugin (Les squelettes > Chosen) en activant l’utilisation de Chosen dans le site public et en spécifiant les éléments de formulaires à améliorer, par exemple select[multiple] pour les listes à sélection multiple (...)

  • 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" ;

  • Gestion de la ferme

    2 mars 2010, par

    La ferme est gérée dans son ensemble par des "super admins".
    Certains réglages peuvent être fais afin de réguler les besoins des différents canaux.
    Dans un premier temps il utilise le plugin "Gestion de mutualisation"

Sur d’autres sites (10705)

  • pngdec : Stop trying to decode once inflate returns Z_STREAM_END

    28 septembre 2013, par Martin Storsjö
    pngdec : Stop trying to decode once inflate returns Z_STREAM_END
    

    If the input buffer contains more data after the deflate stream,
    the loop previously left running infinitely, with inflate returning
    Z_STREAM_END.

    Reported-by : Mateusz "j00ru" Jurczyk and Gynvael Coldwind
    CC : libav-stable@libav.org
    Signed-off-by : Martin Storsjö <martin@martin.st>

    • [DH] libavcodec/pngdec.c
  • (C) avcodec_receive_frame (ffmpeg) function always returns AVERROR(EAGAIN)

    13 avril 2021, par Levyu

    I was following this tutorial : http://dranger.com/ffmpeg/tutorial01.html&#xA;and was trying to change some deprecated functions, and so I had to try to use the avcodec_send_packet and avcodec_receive_frame functions.

    &#xA;

    The problem I'm having is that avcodec_receive_frame always returns AVERROR(EAGAIN).

    &#xA;

    My decoding function is as follows :

    &#xA;

    static int decode(AVCodecContext *pCodecCtx, AVFrame *pFrame, AVPacket *packet) {&#xA;    &#xA;    int ret = avcodec_send_packet(pCodecCtx, packet);&#xA;    if (ret&lt;0) {&#xA;        fprintf(stderr, "error sending packet for decoding\n");&#xA;        exit(1);&#xA;    }&#xA;&#xA;    while (ret>=0) {        &#xA;        // avcodec_receive_packet(pCodecCtx, NULL);&#xA;        ret = avcodec_receive_frame(pCodecCtx, pFrame);&#xA;        if (ret == AVERROR(EAGAIN)) {&#xA;            fprintf(stderr, "\naverror(eagain) ret = %d\n", ret);&#xA;            return -1;&#xA;        }&#xA;        else if (ret == AVERROR_EOF) {&#xA;            fprintf(stderr, "eof\n");&#xA;            return -100;&#xA;        }&#xA;        else if (ret &lt;0) {&#xA;            fprintf(stderr, "error during decoding\n");&#xA;            exit(1);&#xA;        }&#xA;    }&#xA;    return 0;&#xA;}&#xA;

    &#xA;

    Everywhere I read said that this is solved by calling avcodec_send_packet with the next frame, but this does not solve the problem for me because this function is being called in a loop :

    &#xA;

    &#xA;    while (av_read_frame(pFormatCtx, &amp;packet)>=0) {&#xA;        // is this a packet from the video stream?&#xA;        if (packet.stream_index==videoStream) {&#xA;&#xA;           frameNotFinished = decode(pCodecCtx, pFrame, &amp;packet);&#xA;&#xA;            // did we get a video frame?&#xA;            if (!frameNotFinished) fprintf(stderr, "it worked!");&#xA;        }&#xA;        av_packet_unref(&amp;packet);   &#xA;    }&#xA;

    &#xA;

    I should probably also add that avcodec_send_packet always returns 0 (success).

    &#xA;

    Any help would be much appreciated.

    &#xA;

  • hevc_ps : make sure failing to decode an SPS always returns an error

    13 juillet 2015, par Anton Khirnov
    hevc_ps : make sure failing to decode an SPS always returns an error
    

    Some of the goto err clauses do not set the error code. It seems better
    to fall back on INVALIDDATA instead of adding it everywhere explicitly.

    • [DBH] libavcodec/hevc_ps.c