[svn] / trunk / xvidcore / vfw / src / config.c Repository:
ViewVC logotype

Diff of /trunk/xvidcore/vfw/src/config.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1589, Sun Jan 9 20:26:42 2005 UTC revision 1590, Mon Jan 10 02:59:38 2005 UTC
# Line 943  Line 943 
943                                          int new_audio_size = (int)( (1000.0 * duration * audio_rate) / (8.0*1024) );                                          int new_audio_size = (int)( (1000.0 * duration * audio_rate) / (8.0*1024) );
944    
945                                          /* this check is needed to avoid a loop */                                          /* this check is needed to avoid a loop */
946                                          if (new_audio_size!=audio_size)                                          if (new_audio_size!=audio_size) {
947                                                    audio_size = new_audio_size;
948                                                  SetDlgItemInt(hDlg, IDC_BITRATE_ASIZE, new_audio_size, TRUE);                                                  SetDlgItemInt(hDlg, IDC_BITRATE_ASIZE, new_audio_size, TRUE);
949                                            }
950                                  }else{                                  }else{
951                                          int tmp_rate = (int)( (audio_size * 8.0 * 1024) / (1000.0 * duration) );                                          int tmp_rate = (int)( (audio_size * 8.0 * 1024) / (1000.0 * duration) );
952                                          SetDlgItemInt(hDlg, IDC_BITRATE_ARATE, tmp_rate, TRUE);                                          SetDlgItemInt(hDlg, IDC_BITRATE_ARATE, tmp_rate, TRUE);

Legend:
Removed from v.1589  
changed lines
  Added in v.1590

No admin address has been configured
ViewVC Help
Powered by ViewVC 1.0.4