- Timestamp:
- Mar 26, 2015 10:38:30 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjmedia/src/pjmedia/vid_port.c
r5026 r5031 347 347 /* No need to calculate ratio if exact match is found. */ 348 348 if (!found_exact_match) { 349 pj_bool_t found_match = PJ_FALSE; 350 349 351 /* We have the list of supported format with nearest width. Now get the 350 352 * best ratio. … … 361 363 diff_ratio = GET_DIFF(sup_ratio, req_ratio); 362 364 363 if ((i==0) || (diff_ratio <= min_diff_ratio)) { 365 if ((!found_match) || (diff_ratio <= min_diff_ratio)) { 366 found_match = PJ_TRUE; 364 367 match_idx = i; 365 368 min_diff_ratio = diff_ratio;
Note: See TracChangeset
for help on using the changeset viewer.