Logo Search packages:      
Sourcecode: chromium-browser version File versions  Download package

AVCodec* avcodec_find_encoder ( enum CodecID  id  ) 

Finds a registered encoder with a matching codec ID.

id CodecID of the requested encoder
An encoder if one was found, NULL otherwise.

Definition at line 742 of file utils.c.

References AVCodec::encode, AVCodec::id, AVCodec::next, and NULL.

    AVCodec *p;
    p = first_avcodec;
    while (p) {
        if (p->encode != NULL && p->id == id)
            return p;
        p = p->next;
    return NULL;

Generated by  Doxygen 1.6.0   Back to index