Ignore:
Timestamp:
Oct 25, 2011 11:13:53 AM (13 years ago)
Author:
nanang
Message:

Re #1390: disable H264 encoder source format RGB24 as x264 doesn't support 4:4:4 for baseline profile.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjmedia/src/pjmedia-codec/ffmpeg_codecs.c

    r3838 r3853  
    653653                    continue; 
    654654                } 
    655                 raw_fmt[raw_fmt_cnt++] = fmt_id; 
     655                 
     656                //raw_fmt[raw_fmt_cnt++] = fmt_id; 
     657                /* Disable some formats due to H.264 error: 
     658                 * x264 [error]: baseline profile doesn't support 4:4:4 
     659                 */ 
     660                if (desc->info.pt != PJMEDIA_RTP_PT_H264 || 
     661                    fmt_id != PJMEDIA_FORMAT_RGB24) 
     662                { 
     663                    raw_fmt[raw_fmt_cnt++] = fmt_id; 
     664                } 
    656665            } 
    657666 
Note: See TracChangeset for help on using the changeset viewer.