Changeset 221
- Timestamp:
- 07/10/08 12:12:58
(1 month ago)
- Author:
- sip
- Message:
Fixed low amr bitrates
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r217 |
r221 |
|
| 161 | 161 | |
|---|
| 162 | 162 | |
|---|
| 163 | | static short blockSize[16] = { 13, 14, 16, 18, 19, 21, 26, 31, 6, -1, -1, -1, -1, -1, -1, -1}; |
|---|
| | 163 | static short blockSize[16] = { 12, 13, 16, 18, 19, 21, 26, 31, 6, -1, -1, -1, -1, -1, -1, -1}; |
|---|
| 164 | 164 | static short if2stuffing[16] = {5, 5, 6, 6, 0, 5, 0, 0, 5, 1, 6, 7, -1, -1, -1, 4}; |
|---|
| 165 | 165 | |
|---|
| … | … | |
| 544 | 544 | int stuf = if2stuffing[mode]; |
|---|
| 545 | 545 | |
|---|
| | 546 | ast_log(LOG_DEBUG, "create_h324m_frame: Creatubg frame bs %d,stuf %di,mode %d\n",bs,stuf,mode); |
|---|
| | 547 | |
|---|
| 546 | 548 | if (pak->offset + bs > pak->framedata + pak->framelength) { |
|---|
| 547 | 549 | ast_log(LOG_DEBUG, "create_h324m_frame: error decoding AMR structure - block exceeds buffer\n"); |
|---|
| 548 | | ast_log(LOG_DEBUG, "create_h324m_frame: pak->offset=%p;bs=%d, pak->framedata=%p,pak->framelength=%d\n", |
|---|
| 549 | | pak->offset,bs,pak->framedata,pak->framelength); |
|---|
| | 550 | ast_log(LOG_DEBUG, "create_h324m_frame: pak->offset=%p (%d);bs=%d, pak->framedata=%p,pak->framelength=%d\n", |
|---|
| | 551 | pak->offset,(pak->framedata-pak->offset),bs,pak->framedata,pak->framelength); |
|---|
| 550 | 552 | |
|---|
| 551 | 553 | /* exit */ |
|---|
| r213 |
r221 |
|
| 1079 | 1079 | |
|---|
| 1080 | 1080 | /* log */ |
|---|
| 1081 | | ast_log(LOG_DEBUG,"-rtsp play loop\n"); |
|---|
| | 1081 | ast_log(LOG_DEBUG,"-rtsp play loop [%d]\n",duration); |
|---|
| 1082 | 1082 | |
|---|
| 1083 | 1083 | /* Loop */ |
|---|
| … | … | |
| 1382 | 1382 | } |
|---|
| 1383 | 1383 | /* If the video has end */ |
|---|
| 1384 | | if (duration!=-1) |
|---|
| | 1384 | if (duration>0) |
|---|
| 1385 | 1385 | /* Init counter */ |
|---|
| 1386 | 1386 | tv = ast_tvnow(); |
|---|
Download in other formats:
|
|