Ignore:
Timestamp:
Mar 31, 2011 5:29:54 PM (11 years ago)
Author:
nanang
Message:

Re #1219:

  • Initial version of H264 implementation (codec & packetization).
  • Added vid_codec_util.h/c for video codec utilities (e.g: fmtp parser).
  • Updated video RTP packetizations to be configurable and have internal state (to be more resilient to packet lost, etc).
  • Fixed wrong SPF calculation in PJMEDIA_SPF2.
  • Updated vid_codec_test.c to also have RTP packetization test.
  • Updated sdp_neg.c to verify H.264 capability match.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/branches/projects/2.0-dev/pjmedia/include/pjmedia/format.h

    r3461 r3493  
    458458{ 
    459459#if PJ_HAS_INT64 
    460     return ((unsigned)((pj_uint64_t)clock_rate * fr->num \ 
    461                        / fr->denum / channel_count)); 
     460    return ((unsigned)((pj_uint64_t)clock_rate * fr->denum \ 
     461                       / fr->num / channel_count)); 
    462462#elif PJ_HAS_FLOATING_POINT 
    463     return ((unsigned)(1.0 * clock_rate * fr->num /fr->denum /channel_count)); 
     463    return ((unsigned)(1.0* clock_rate * fr->denum / fr->num /channel_count)); 
    464464#else 
    465     return ((unsigned)(1L * clock_rate * fr->num / fr->denum / channel_count)); 
     465    return ((unsigned)(1L * clock_rate * fr->denum / fr->num / channel_count)); 
    466466#endif 
    467467} 
Note: See TracChangeset for help on using the changeset viewer.