- Timestamp:
- Apr 6, 2015 6:21:41 AM (10 years ago)
- Location:
- pjproject/trunk/pjmedia/src
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjmedia/src/pjmedia-codec/silk.c
r4987 r5046 896 896 897 897 if (output->size == 0) { 898 output->type = PJMEDIA_ TYPE_NONE;898 output->type = PJMEDIA_FRAME_TYPE_NONE; 899 899 output->buf = NULL; 900 900 return PJMEDIA_CODEC_EFAILED; 901 901 } 902 902 903 output->type = PJMEDIA_ TYPE_AUDIO;903 output->type = PJMEDIA_FRAME_TYPE_AUDIO; 904 904 output->timestamp = input->timestamp; 905 905 -
pjproject/trunk/pjmedia/src/pjmedia/avi_player.c
r4537 r5046 540 540 { 541 541 pj_assert(streams); 542 return (idx >=0 && idx < streams->num_streams ? 543 streams->streams[idx] : NULL); 542 return (idx < streams->num_streams ? streams->streams[idx] : NULL); 544 543 } 545 544 -
pjproject/trunk/pjmedia/src/pjmedia/converter_libyuv.c
r4875 r5046 146 146 147 147 #define MAP_CONV_PACK_TO_PACK(src,dst,method) GET_PJ_FORMAT(src),\ 148 GET_PJ_FORMAT(dst),CONV_PACK_TO_PACK, method148 GET_PJ_FORMAT(dst),CONV_PACK_TO_PACK,(gen_conv_func)&method 149 149 #define MAP_CONV_PACK_TO_PLANAR(src,dst,method) GET_PJ_FORMAT(src),\ 150 GET_PJ_FORMAT(dst),CONV_PACK_TO_PLANAR, method150 GET_PJ_FORMAT(dst),CONV_PACK_TO_PLANAR,(gen_conv_func)&method 151 151 #define MAP_CONV_PLANAR_TO_PACK(src,dst,method) GET_PJ_FORMAT(src),\ 152 GET_PJ_FORMAT(dst),CONV_PLANAR_TO_PACK, method152 GET_PJ_FORMAT(dst),CONV_PLANAR_TO_PACK,(gen_conv_func)&method 153 153 #define MAP_CONV_PLANAR_TO_PLANAR(src,dst,method) GET_PJ_FORMAT(src),\ 154 GET_PJ_FORMAT(dst),CONV_PLANAR_TO_PLANAR, method154 GET_PJ_FORMAT(dst),CONV_PLANAR_TO_PLANAR,(gen_conv_func)&method 155 155 #define MAP_SCALE_PACK(fmt,method) GET_PJ_FORMAT(fmt),\ 156 GET_PJ_FORMAT(fmt),SCALE_PACK, method156 GET_PJ_FORMAT(fmt),SCALE_PACK,(gen_conv_func)&method 157 157 #define MAP_SCALE_PLANAR(fmt,method) GET_PJ_FORMAT(fmt),\ 158 GET_PJ_FORMAT(fmt),SCALE_PLANAR, method158 GET_PJ_FORMAT(fmt),SCALE_PLANAR,(gen_conv_func)&method 159 159 160 160 static fmt_convert_map conv_to_i420[] = -
pjproject/trunk/pjmedia/src/pjmedia/vid_codec_util.c
r4952 r5046 400 400 } else if (pj_stricmp(&fmtp->param[i].name, &PACKETIZATION_MODE)==0) { 401 401 tmp = pj_strtoul(&fmtp->param[i].val); 402 if (tmp >= 0 && tmp<= 2)402 if (tmp <= 2) 403 403 h264_fmtp->packetization_mode = (pj_uint8_t)tmp; 404 404 else -
pjproject/trunk/pjmedia/src/pjmedia/vid_port.c
r5033 r5046 33 33 34 34 35 /* Enable/disable test of finding closest format algo */ 36 #define ENABLE_TEST_FIND_FMT 0 37 38 35 39 /** 36 40 * Enable this to trace the format matching process. … … 248 252 pjmedia_vid_dev_info *di) 249 253 { 250 unsigned i = 0, match_idx = 0, match_fmt = FMT_DIFF_COLOR_SPACE+1;254 unsigned i, match_idx = 0, match_fmt = FMT_DIFF_COLOR_SPACE+1; 251 255 252 256 /* Find the matching format. If no exact match is found, find … … 254 258 * use the first supported format on the list. 255 259 */ 256 for (i ; i < di->fmt_cnt; ++i) {260 for (i = 0; i < di->fmt_cnt; ++i) { 257 261 unsigned tmp_fmt = match_format_id(req_fmt_id, di->fmt[i].id); 258 262 … … 380 384 } 381 385 386 #if ENABLE_TEST_FIND_FMT 382 387 /** 383 388 * This is to test the algo to find the closest fmt … … 470 475 } 471 476 } 477 #endif 472 478 473 479 PJ_DEF(pj_status_t) pjmedia_vid_port_create( pj_pool_t *pool, … … 536 542 } 537 543 538 #if 0544 #if ENABLE_TEST_FIND_FMT 539 545 test_find_closest_fmt(&di); 540 546 #endif
Note: See TracChangeset
for help on using the changeset viewer.