Logo Search packages:      
Sourcecode: blender version File versions  Download package

enum CodecID av_guess_codec ( AVOutputFormat *  fmt,
const char *  short_name,
const char *  filename,
const char *  mime_type,
enum CodecType  type 

Guesses the codec id based upon muxer and filename.

Definition at line 144 of file utils.c.

    if(type == CODEC_TYPE_VIDEO){
        enum CodecID codec_id= CODEC_ID_NONE;

        if(!strcmp(fmt->name, "image2") || !strcmp(fmt->name, "image2pipe")){
            codec_id= av_guess_image2_codec(filename);
        if(codec_id == CODEC_ID_NONE)
            codec_id= fmt->video_codec;
        return codec_id;
    }else if(type == CODEC_TYPE_AUDIO)
        return fmt->audio_codec;
        return CODEC_ID_NONE;

Generated by  Doxygen 1.6.0   Back to index