Changeset 4621 for pjproject


Ignore:
Timestamp:
Oct 17, 2013 2:43:59 AM (11 years ago)
Author:
nanang
Message:

Misc (re #1630): replaced htons() with ntohs() in l16_decode() on little endian platforms.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjmedia/src/pjmedia-codec/l16.c

    r3664 r4621  
    685685#if defined(PJ_IS_LITTLE_ENDIAN) && PJ_IS_LITTLE_ENDIAN!=0 
    686686    while (samp!=samp_end) 
    687         *samp_out++ = pj_htons(*samp++); 
     687        *samp_out++ = pj_ntohs(*samp++); 
    688688#else 
    689689    pjmedia_copy_samples(samp_out, samp, input->size >> 1); 
Note: See TracChangeset for help on using the changeset viewer.