Changeset 2335


Ignore:
Timestamp:
Oct 1, 2008 8:45:33 AM (10 years ago)
Author:
bennylp
Message:

Ticket #649: Build error in wav_writer.c in big endian systems (thanks Seth Hinze for the patch)

File:
1 edited

Legend:

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

    r2272 r2335  
    292292 
    293293    /* Convert samples to little endian */ 
    294     swap_samples((pj_int16_t*)fport->buf, bytes/BYTES_PER_SAMPLE); 
     294    swap_samples((pj_int16_t*)fport->buf, bytes/fport->bytes_per_sample); 
    295295 
    296296    /* Write to file. */ 
Note: See TracChangeset for help on using the changeset viewer.