Changeset 162
- 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
| r158 |
r162 |
|
| 420 | 420 | /* Depending on the name */ |
|---|
| 421 | 421 | if (strcmp("PCMU", audio.name) == 0) |
|---|
| | 422 | { |
|---|
| 422 | 423 | 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 | } |
|---|
| 423 | 427 | else if (strcmp("PCMA", audio.name) == 0) |
|---|
| | 428 | { |
|---|
| 424 | 429 | 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 | } |
|---|
| 425 | 433 | else if (strcmp("AMR", audio.name) == 0) |
|---|
| | 434 | { |
|---|
| 426 | 435 | 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 | } |
|---|
| 427 | 439 | |
|---|
| 428 | 440 | } else if (strcmp(type, MP4_VIDEO_TRACK_TYPE) == 0) { |
|---|
Download in other formats:
|
|