Revision fc228c90

View differences:

libavcodec/utils.c
1009 1009
AVCodec *avcodec_find_encoder_by_name(const char *name)
1010 1010
{
1011 1011
    AVCodec *p;
1012
    if (!name)
1013
        return NULL;
1012 1014
    p = first_avcodec;
1013 1015
    while (p) {
1014 1016
        if (p->encode != NULL && strcmp(name,p->name) == 0)
......
1033 1035
AVCodec *avcodec_find_decoder_by_name(const char *name)
1034 1036
{
1035 1037
    AVCodec *p;
1038
    if (!name)
1039
        return NULL;
1036 1040
    p = first_avcodec;
1037 1041
    while (p) {
1038 1042
        if (p->decode != NULL && strcmp(name,p->name) == 0)

Also available in: Unified diff