Revision de481d7f

View differences:

libavcodec/imgconvert.c
494 494
    int i;
495 495

  
496 496
    for (i=0; i < PIX_FMT_NB; i++)
497
         if (!strcmp(pix_fmt_info[i].name, name))
497
        if (pix_fmt_info[i].name && !strcmp(pix_fmt_info[i].name, name))
498 498
             return i;
499 499
    return PIX_FMT_NONE;
500 500
}

Also available in: Unified diff