- Timestamp:
- Aug 29, 2011 7:57:55 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjmedia/src/pjmedia-codec/ffmpeg_codecs.c
r3715 r3734 44 44 #include <libavformat/avformat.h> 45 45 46 #define ENABLE_H264 0 46 47 47 48 /* Prototypes for FFMPEG codecs factory */ … … 90 91 unsigned output_buf_len, 91 92 pjmedia_frame *output); 92 static pj_status_t ffmpeg_codec_recover( pjmedia_vid_codec *codec,93 unsigned output_buf_len,94 pjmedia_frame *output);95 93 96 94 /* Definition for FFMPEG codecs operations. */ … … 106 104 &ffmpeg_codec_encode, 107 105 &ffmpeg_codec_decode, 108 NULL //&ffmpeg_codec_recover106 NULL 109 107 }; 110 108 … … 220 218 221 219 220 #if ENABLE_H264 222 221 /* H264 constants */ 223 222 #define PROFILE_H264_BASELINE 66 … … 227 226 static pj_status_t h264_preopen(ffmpeg_private *ff); 228 227 static pj_status_t h264_postopen(ffmpeg_private *ff); 229 static pj_status_t h263_preopen(ffmpeg_private *ff);230 228 static FUNC_PACKETIZE(h264_packetize); 231 229 static FUNC_UNPACKETIZE(h264_unpacketize); 230 #endif /* ENABLE_H264 */ 231 232 static pj_status_t h263_preopen(ffmpeg_private *ff); 232 233 static FUNC_PACKETIZE(h263_packetize); 233 234 static FUNC_UNPACKETIZE(h263_unpacketize); … … 237 238 ffmpeg_codec_desc codec_desc[] = 238 239 { 240 #if ENABLE_H264 239 241 { 240 242 {PJMEDIA_FORMAT_H264, PJMEDIA_RTP_PT_H264, {"H264",4}, … … 256 258 {{" packetization-mode",19}, {"1",1}}, } }, 257 259 }, 260 #endif 258 261 { 259 262 {PJMEDIA_FORMAT_H263P, PJMEDIA_RTP_PT_H263P, {"H263-1998",9}}, … … 288 291 }; 289 292 290 293 #if ENABLE_H264 291 294 typedef struct h264_data 292 295 { … … 419 422 bits, bits_len, bits_pos); 420 423 } 421 424 #endif /* ENABLE_H264 */ 422 425 423 426 typedef struct h263_data … … 1473 1476 } 1474 1477 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 }1488 1478 1489 1479 #ifdef _MSC_VER
Note: See TracChangeset
for help on using the changeset viewer.