Changeset 162

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

- set write format for mp4_play
- ToDo?: set read formats in mp4_save and write format in rtsp

Files:

Legend:

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

    r158 r162  
    420420                                /* Depending on the name */ 
    421421                                if (strcmp("PCMU", audio.name) == 0) 
     422                                { 
    422423                                        audio.frameSubClass = AST_FORMAT_ULAW; 
     424                                        if (ast_set_write_format(chan, AST_FORMAT_ULAW)) 
     425                                                ast_log(LOG_WARNING, "mp4_play: Unable to set read format to ULAW!\n"); 
     426                                } 
    423427                                else if (strcmp("PCMA", audio.name) == 0) 
     428                                { 
    424429                                        audio.frameSubClass = AST_FORMAT_ALAW; 
     430                                        if (ast_set_write_format(chan, AST_FORMAT_ALAW)) 
     431                                                ast_log(LOG_WARNING, "mp4_play: Unable to set read format to ALAW!\n"); 
     432                                }  
    425433                                else if (strcmp("AMR", audio.name) == 0) 
     434                                { 
    426435                                        audio.frameSubClass = AST_FORMAT_AMRNB; 
     436                                        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"); 
     438                                } 
    427439 
    428440                        } else if (strcmp(type, MP4_VIDEO_TRACK_TYPE) == 0) { 
Copyright 2006 - Sergio García Murillo
Powered by Trac - Edgewall Software