Changeset 5698


Ignore:
Timestamp:
Nov 21, 2017 6:00:21 AM (7 years ago)
Author:
nanang
Message:

Re #2057: Fixed compile error on MSVC2005 due to var declaration not in the beginning of block (C89 interop).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjmedia/src/pjmedia/conference.c

    r5696 r5698  
    19781978                /* Check if normalization adjustment needed. */ 
    19791979                if (mix_buf_min < MIN_LEVEL || mix_buf_max > MAX_LEVEL) { 
     1980                    int tmp_adj; 
     1981 
    19801982                    if (-mix_buf_min > mix_buf_max) 
    19811983                        mix_buf_max = -mix_buf_min; 
    19821984 
    19831985                    /* NORMAL_LEVEL * MAX_LEVEL / mix_buf_max; */ 
    1984                     int tmp_adj = (MAX_LEVEL<<7) / mix_buf_max; 
     1986                    tmp_adj = (MAX_LEVEL<<7) / mix_buf_max; 
    19851987                    if (tmp_adj < listener->mix_adj) 
    19861988                        listener->mix_adj = tmp_adj; 
Note: See TracChangeset for help on using the changeset viewer.