Ignore:
Timestamp:
Oct 21, 2006 9:23:37 AM (18 years ago)
Author:
bennylp
Message:

Fixed quality setting in MP3 writer (thanks Toni again)

File:
1 edited

Legend:

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

    r785 r786  
    201201        LConfig.format.LHV1.bWriteVBRHeader = 1; 
    202202        LConfig.format.LHV1.dwVbrAbr_bps = fport->mp3_option.bit_rate; 
     203        LConfig.format.LHV1.nVBRQuality =  (pj_uint16_t) 
     204                                           fport->mp3_option.quality; 
    203205        LConfig.format.LHV1.bEnableVBR = 1; 
    204206    } 
    205207 
    206     LConfig.format.LHV1.nQuality =  (pj_uint16_t)fport->mp3_option.quality; 
     208    LConfig.format.LHV1.nQuality = (pj_uint16_t)  
     209                                   (((0-fport->mp3_option.quality-1)<<8) |  
     210                                    fport->mp3_option.quality); 
    207211 
    208212    /* 
Note: See TracChangeset for help on using the changeset viewer.