Changeset 3734


Ignore:
Timestamp:
Aug 29, 2011 7:57:55 AM (13 years ago)
Author:
bennylp
Message:

Disabled H.264 codec [re #1320/Misc]

File:
1 edited

Legend:

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

    r3715 r3734  
    4444#include <libavformat/avformat.h> 
    4545 
     46#define ENABLE_H264     0 
    4647 
    4748/* Prototypes for FFMPEG codecs factory */ 
     
    9091                                         unsigned output_buf_len,  
    9192                                         pjmedia_frame *output); 
    92 static pj_status_t  ffmpeg_codec_recover( pjmedia_vid_codec *codec,  
    93                                           unsigned output_buf_len,  
    94                                           pjmedia_frame *output); 
    9593 
    9694/* Definition for FFMPEG codecs operations. */ 
     
    106104    &ffmpeg_codec_encode, 
    107105    &ffmpeg_codec_decode, 
    108     NULL //&ffmpeg_codec_recover 
     106    NULL 
    109107}; 
    110108 
     
    220218 
    221219 
     220#if ENABLE_H264 
    222221/* H264 constants */ 
    223222#define PROFILE_H264_BASELINE           66 
     
    227226static pj_status_t h264_preopen(ffmpeg_private *ff); 
    228227static pj_status_t h264_postopen(ffmpeg_private *ff); 
    229 static pj_status_t h263_preopen(ffmpeg_private *ff); 
    230228static FUNC_PACKETIZE(h264_packetize); 
    231229static FUNC_UNPACKETIZE(h264_unpacketize); 
     230#endif  /* ENABLE_H264 */ 
     231 
     232static pj_status_t h263_preopen(ffmpeg_private *ff); 
    232233static FUNC_PACKETIZE(h263_packetize); 
    233234static FUNC_UNPACKETIZE(h263_unpacketize); 
     
    237238ffmpeg_codec_desc codec_desc[] = 
    238239{ 
     240#if ENABLE_H264 
    239241    { 
    240242        {PJMEDIA_FORMAT_H264, PJMEDIA_RTP_PT_H264, {"H264",4}, 
     
    256258              {{" packetization-mode",19},  {"1",1}}, } }, 
    257259    }, 
     260#endif 
    258261    { 
    259262        {PJMEDIA_FORMAT_H263P, PJMEDIA_RTP_PT_H263P, {"H263-1998",9}}, 
     
    288291}; 
    289292 
    290  
     293#if ENABLE_H264 
    291294typedef struct h264_data 
    292295{ 
     
    419422                                    bits, bits_len, bits_pos); 
    420423} 
    421  
     424#endif  /* ENABLE_H264 */ 
    422425 
    423426typedef struct h263_data 
     
    14731476} 
    14741477 
    1475 /*  
    1476  * Recover lost frame. 
    1477  */ 
    1478 static pj_status_t  ffmpeg_codec_recover( pjmedia_vid_codec *codec,  
    1479                                           unsigned output_buf_len,  
    1480                                           pjmedia_frame *output) 
    1481 { 
    1482     PJ_UNUSED_ARG(codec); 
    1483     PJ_UNUSED_ARG(output_buf_len); 
    1484     PJ_UNUSED_ARG(output); 
    1485  
    1486     return PJ_ENOTSUP; 
    1487 } 
    14881478 
    14891479#ifdef _MSC_VER 
Note: See TracChangeset for help on using the changeset viewer.