| 404 | } |
| 405 | |
| 406 | const char *avcodec_get_name(enum AVCodecID id) |
| 407 | { |
| 408 | const AVCodecDescriptor *cd; |
| 409 | const AVCodec *codec; |
| 410 | |
| 411 | if (id == AV_CODEC_ID_NONE) |
| 412 | return "none"; |
| 413 | cd = avcodec_descriptor_get(id); |
| 414 | if (cd) |
| 415 | return cd->name; |
| 416 | av_log(NULL, AV_LOG_WARNING, "Codec 0x%x is not in the full list.\n", id); |
| 417 | codec = avcodec_find_decoder(id); |
| 418 | if (codec) |
| 419 | return codec->name; |
| 420 | codec = avcodec_find_encoder(id); |
| 421 | if (codec) |
| 422 | return codec->name; |
| 423 | return "unknown_codec"; |
| 424 | } |
| 425 | |
| 426 | const char *av_get_profile_name(const AVCodec *codec, int profile) |
| 427 | { |