Changeset 163

Show
Ignore:
Timestamp:
09/17/07 17:48:40 (1 year ago)
Author:
klaus
Message:

- set codec for mp4_save (untested)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • app_mp4/app_mp4.c

    r162 r163  
    423423                                        audio.frameSubClass = AST_FORMAT_ULAW; 
    424424                                        if (ast_set_write_format(chan, AST_FORMAT_ULAW)) 
    425                                                 ast_log(LOG_WARNING, "mp4_play: Unable to set read format to ULAW!\n"); 
     425                                                ast_log(LOG_WARNING, "mp4_play: Unable to set write format to ULAW!\n"); 
    426426                                } 
    427427                                else if (strcmp("PCMA", audio.name) == 0) 
     
    429429                                        audio.frameSubClass = AST_FORMAT_ALAW; 
    430430                                        if (ast_set_write_format(chan, AST_FORMAT_ALAW)) 
    431                                                 ast_log(LOG_WARNING, "mp4_play: Unable to set read format to ALAW!\n"); 
     431                                                ast_log(LOG_WARNING, "mp4_play: Unable to set write format to ALAW!\n"); 
    432432                                }  
    433433                                else if (strcmp("AMR", audio.name) == 0) 
     
    435435                                        audio.frameSubClass = AST_FORMAT_AMRNB; 
    436436                                        if (ast_set_write_format(chan, AST_FORMAT_AMRNB)) 
    437                                                 ast_log(LOG_WARNING, "mp4_play: Unable to set read format to AMR-NB!\n"); 
     437                                                ast_log(LOG_WARNING, "mp4_play: Unable to set write format to AMR-NB!\n"); 
    438438                                } 
    439439 
     
    635635        } 
    636636 
    637         ast_log(LOG_DEBUG, ">mp4save [%s,%s]\n",(char*)data,params); 
     637       ast_log(LOG_DEBUG, ">mp4save [%s,%s]\n",(char*)data,params); 
    638638 
    639639        /* Create mp4 file */ 
     
    646646        /* Lock module */ 
    647647        u = ast_module_user_add(chan); 
     648 
     649        if (ast_set_read_format(chan, AST_FORMAT_ULAW|AST_FORMAT_ALAW|AST_FORMAT_AMRNB)) 
     650                ast_log(LOG_WARNING, "mp4_save: Unable to set read format to ULAW|ALAW|AMRNB!\n"); 
    648651 
    649652        /* Send video update */ 
Copyright 2006 - Sergio García Murillo
Powered by Trac - Edgewall Software