Changeset 4952 for pjproject/trunk
- Timestamp:
- Oct 17, 2014 6:47:02 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjmedia/src/pjmedia/vid_codec_util.c
r4854 r4952 40 40 41 41 /* Default frame rate, if not specified */ 42 #define DEFAULT_H264_FPS_NUM 1 542 #define DEFAULT_H264_FPS_NUM 10 43 43 #define DEFAULT_H264_FPS_DENUM 1 44 44 45 45 /* Default aspect ratio, if not specified */ 46 #define DEFAULT_H264_RATIO_NUM 1647 #define DEFAULT_H264_RATIO_DENUM 946 #define DEFAULT_H264_RATIO_NUM 4 47 #define DEFAULT_H264_RATIO_DENUM 3 48 48 49 49 … … 637 637 638 638 /* Check if the specified ratio is using big numbers 639 * (not normalizable), override it with default ratio!639 * (not normalizable), override it! 640 640 */ 641 if ((int)max_fs < asp_ratio.num * asp_ratio.denum) 642 asp_ratio = def_ratio; 641 if ((int)max_fs < asp_ratio.num * asp_ratio.denum) { 642 if ((int)max_fs >= def_ratio.num * def_ratio.denum) 643 asp_ratio = def_ratio; 644 else 645 asp_ratio.num = asp_ratio.denum = 1; 646 } 643 647 644 648 /* Calculate the scale factor for size */
Note: See TracChangeset
for help on using the changeset viewer.