Revision 4f489292

View differences:

ffmpeg.c
2499 2499

  
2500 2500
static enum CodecID find_codec_or_die(const char *name, int type, int encoder)
2501 2501
{
2502
    char *codec_string = encoder ? "encoder" : "decoder";
2502 2503
    AVCodec *codec;
2503 2504

  
2504 2505
    if(!name)
......
2507 2508
        avcodec_find_encoder_by_name(name) :
2508 2509
        avcodec_find_decoder_by_name(name);
2509 2510
    if(!codec) {
2510
        av_log(NULL, AV_LOG_ERROR, "Unknown codec '%s'\n", name);
2511
        av_log(NULL, AV_LOG_ERROR, "Unknown %s '%s'\n", codec_string, name);
2511 2512
        exit(1);
2512 2513
    }
2513 2514
    if(codec->type != type) {
2514
        av_log(NULL, AV_LOG_ERROR, "Invalid codec type '%s'\n", name);
2515
        av_log(NULL, AV_LOG_ERROR, "Invalid %s type '%s'\n", codec_string, name);
2515 2516
        exit(1);
2516 2517
    }
2517 2518
    return codec->id;

Also available in: Unified diff