Changeset 221

Show
Ignore:
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
  • app_h324m/app_h324m.c

    r217 r221  
    161161 
    162162 
    163 static short blockSize[16] = { 13, 14, 16, 18, 19, 21, 26, 31,  6, -1, -1, -1, -1, -1, -1, -1}; 
     163static short blockSize[16] = { 12, 13, 16, 18, 19, 21, 26, 31,  6, -1, -1, -1, -1, -1, -1, -1}; 
    164164static short if2stuffing[16] = {5,  5,  6,  6,  0,  5,  0,  0,  5,  1,  6,  7, -1, -1, -1,  4}; 
    165165 
     
    544544                        int stuf = if2stuffing[mode]; 
    545545 
     546                        ast_log(LOG_DEBUG, "create_h324m_frame: Creatubg frame bs %d,stuf %di,mode %d\n",bs,stuf,mode); 
     547 
    546548                        if (pak->offset + bs > pak->framedata + pak->framelength) { 
    547549                                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); 
    550552 
    551553                                /* exit */ 
  • app_rtsp/app_rtsp.c

    r213 r221  
    10791079 
    10801080        /* log */ 
    1081         ast_log(LOG_DEBUG,"-rtsp play loop\n"); 
     1081        ast_log(LOG_DEBUG,"-rtsp play loop [%d]\n",duration); 
    10821082 
    10831083        /* Loop */ 
     
    13821382                                        } 
    13831383                                        /* If the video has end */ 
    1384                                         if (duration!=-1
     1384                                        if (duration>0
    13851385                                                /* Init counter */ 
    13861386                                                tv = ast_tvnow(); 
Copyright 2006 - Sergio García Murillo
Powered by Trac - Edgewall Software