Skip to content
Snippets Groups Projects
vcodecs.c 28.1 KiB
Newer Older
  • Learn to ignore specific revisions
  • /*
     * Map the AST_FORMAT to the library. If not recognised, fail.
     * This is useful in the input path where we get frames.
     */
    static struct video_codec_desc *map_video_codec(int fmt)
    {
    	int i;
    
    	for (i = 0; supported_codecs[i]; i++)
    		if (fmt == supported_codecs[i]->format) {
    			ast_log(LOG_WARNING, "using %s for format 0x%x\n",
    				supported_codecs[i]->name, fmt);
    			return supported_codecs[i];
    		}
    	return NULL;
    }
    
    /*------ end codec specific code -----*/