Recherche avancée

Médias (91)

Autres articles (111)

  • L’utiliser, en parler, le critiquer

    10 avril 2011

    La première attitude à adopter est d’en parler, soit directement avec les personnes impliquées dans son développement, soit autour de vous pour convaincre de nouvelles personnes à l’utiliser.
    Plus la communauté sera nombreuse et plus les évolutions seront rapides ...
    Une liste de discussion est disponible pour tout échange entre utilisateurs.

  • Mediabox : ouvrir les images dans l’espace maximal pour l’utilisateur

    8 février 2011, par

    La visualisation des images est restreinte par la largeur accordée par le design du site (dépendant du thème utilisé). Elles sont donc visibles sous un format réduit. Afin de profiter de l’ensemble de la place disponible sur l’écran de l’utilisateur, il est possible d’ajouter une fonctionnalité d’affichage de l’image dans une boite multimedia apparaissant au dessus du reste du contenu.
    Pour ce faire il est nécessaire d’installer le plugin "Mediabox".
    Configuration de la boite multimédia
    Dès (...)

  • Les autorisations surchargées par les plugins

    27 avril 2010, par

    Mediaspip core
    autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs

Sur d’autres sites (6510)

  • avdevice/lavfi : check that pointer is set

    10 mai 2023, par Paul B Mahol
    avdevice/lavfi : check that pointer is set
    

    Fixes NULL pointer dereference later.

    • [DH] libavdevice/lavfi.c
  • How to define a structure with a function pointer by using ctypes ?

    8 décembre 2017, par Wai

    I want to call av_find_input_format function (from dll coded in C) from Python. The function define as follows :

    AVInputFormat *av_find_input_format(const char *short_name);

    In order to call it successfully, I must define a structure AVInputFormat as its return value. The AVInputFormat structure is defined in C as follow :

    typedef struct AVInputFormat {
       const char *name;
       const char *long_name;
       int flags;
       const char *extensions;
       const struct AVCodecTag * const *codec_tag;
       const AVClass *priv_class; ///< AVClass for the private context
       const char *mime_type;
       struct AVInputFormat *next;
       int raw_codec_id;
       int priv_data_size;
       int (*read_probe)(AVProbeData *);
       int (*read_header)(struct AVFormatContext *);
       int (*read_packet)(struct AVFormatContext *, AVPacket *pkt);
       int (*read_close)(struct AVFormatContext *);
       int (*read_seek)(struct AVFormatContext *, int stream_index, int64_t timestamp, int flags);
       int64_t (*read_timestamp)(struct AVFormatContext *s, int stream_index, int64_t *pos, int64_t pos_limit);
       int (*read_play)(struct AVFormatContext *);
       int (*read_pause)(struct AVFormatContext *);
       int (*read_seek2)(struct AVFormatContext *s, int stream_index, int64_t min_ts, int64_t ts, int64_t max_ts, int flags);
       int (*get_device_list)(struct AVFormatContext *s, struct AVDeviceInfoList *device_list);
       int (*create_device_capabilities)(struct AVFormatContext *s, struct AVDeviceCapabilitiesQuery *caps);
       int (*free_device_capabilities)(struct AVFormatContext *s, struct AVDeviceCapabilitiesQuery *caps);
    } AVInputFormat;

    What should I do ?

    Additional explanation, now my Python as follows :

    import ctypes
    class AVInputFormat(ctypes.Structure):
       pass
    AVInputFormat._fields_ = [("name", ctypes.c_char_p),
                             ("long_name", ctypes.c_char_p),
                             ('flags', ctypes.c_int),
                             ('extensions', ctypes.c_char_p),
                             ('codec_tag', ctypes.POINTER(AVCodecTag)),
                             ('priv_class', ctypes.POINTER(AVClass)),
                             ('next', ctypes.POINTER(AVInputFormat)),
                             ('raw_codec_id', ctypes.c_int),
                             ('priv_data_size', ctypes.c_int),
                             ('read_probe', ctypes.POINTER(read_probe)),
                             ('read_header', ctypes.POINTER(read_header)),
                             ('read_packet', ctypes.POINTER(read_packet)),
                             ('read_close', ctypes.POINTER(read_close)),
                             ('read_seek', ctypes.POINTER(read_seek)),
                             ('read_timestamp', ctypes.POINTER(read_timestamp)),
                             ('read_play', ctypes.POINTER(read_play)),
                             ('read_pause', ctypes.POINTER(read_pause)),
                             ('read_seek2', ctypes.POINTER(read_seek2)),
                             ('get_device_list', ctypes.POINTER(get_device_list)),
                             ('create_device_capabilities', ctypes.POINTER(create_device_capabilities)),
                             ('free_device_capabilities', ctypes.POINTER(free_device_capabilities))]

    avformat_dll = ctypes.cdll.LoadLibrary('avformat-57.dll')
    # *av_find_input_format(const char *short_name);
    print avformat_dll.av_find_input_format
    func = avformat_dll.av_find_input_format
    func.restype = ctypes.POINTER(AVInputFormat)
    fmt = func('aac')
    print fmt.contents.name

    But it runs error with ValueError: NULL pointer access

  • Null pointer exception (fix ?) for _setAutoPlay()

    15 juin 2010, par Scott Schiller

    m src/SoundManager2_AS3.as m swf/soundmanager2_flash9.swf m swf/soundmanager2_flash9_debug.swf Null pointer exception (fix ?) for _setAutoPlay()