Changeset 5033 for pjproject/trunk


Ignore:
Timestamp:
Mar 26, 2015 11:07:43 AM (10 years ago)
Author:
riza
Message:

Re #1831: Handle when the information of the supported format is not available.

File:
1 edited

Legend:

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

    r5031 r5033  
    233233                                        pjmedia_video_format_mgr_instance(), 
    234234                                        sup_id); 
     235 
     236    if ((req_fmt_info == NULL) || (sup_fmt_info == NULL)) { 
     237        return FMT_DIFF_COLOR_SPACE; 
     238    } 
    235239 
    236240    if (req_fmt_info->color_model == sup_fmt_info->color_model) { 
Note: See TracChangeset for help on using the changeset viewer.