Changeset 4873
- Timestamp:
- Jul 11, 2014 4:20:08 AM (10 years ago)
- Location:
- pjproject/trunk/pjmedia/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjmedia/src/pjmedia-codec/openh264.cpp
r4867 r4873 648 648 } 649 649 650 if (oh264_data->bsi.e FrameType == videoFrameTypeSkip) {650 if (oh264_data->bsi.eOutputFrameType == videoFrameTypeSkip) { 651 651 output->size = 0; 652 652 output->type = PJMEDIA_FRAME_TYPE_NONE; … … 668 668 /* Find which layer with biggest payload */ 669 669 oh264_data->ilayer = 0; 670 payload_size = oh264_data->bsi.sLayerInfo[0]. pNalLengthInByte[0];670 payload_size = oh264_data->bsi.sLayerInfo[0].iNalLengthInByte[0]; 671 671 for (i=0; i < (unsigned)oh264_data->bsi.iLayerNum; ++i) { 672 672 unsigned j; 673 673 pLayerBsInfo = &oh264_data->bsi.sLayerInfo[i]; 674 674 for (j=0; j < (unsigned)pLayerBsInfo->iNalCount; ++j) { 675 if (pLayerBsInfo-> pNalLengthInByte[j] > (int)payload_size) {676 payload_size = pLayerBsInfo-> pNalLengthInByte[j];675 if (pLayerBsInfo->iNalLengthInByte[j] > (int)payload_size) { 676 payload_size = pLayerBsInfo->iNalLengthInByte[j]; 677 677 oh264_data->ilayer = i; 678 678 } … … 690 690 payload_size = 0; 691 691 for (int inal = pLayerBsInfo->iNalCount - 1; inal >= 0; --inal) { 692 payload_size += pLayerBsInfo-> pNalLengthInByte[inal];692 payload_size += pLayerBsInfo->iNalLengthInByte[inal]; 693 693 } 694 694 … … 747 747 output->size = payload_len; 748 748 749 if (oh264_data->bsi.e FrameType == videoFrameTypeIDR) {749 if (oh264_data->bsi.eOutputFrameType == videoFrameTypeIDR) { 750 750 output->bit_info |= PJMEDIA_VID_FRM_KEYFRAME; 751 751 } … … 769 769 oh264_data->enc_frame_size = 0; 770 770 for (int inal = pLayerBsInfo->iNalCount - 1; inal >= 0; --inal) { 771 oh264_data->enc_frame_size += pLayerBsInfo-> pNalLengthInByte[inal];771 oh264_data->enc_frame_size += pLayerBsInfo->iNalLengthInByte[inal]; 772 772 } 773 773 … … 796 796 output->size = payload_len; 797 797 798 if (oh264_data->bsi.e FrameType == videoFrameTypeIDR) {798 if (oh264_data->bsi.eOutputFrameType == videoFrameTypeIDR) { 799 799 output->bit_info |= PJMEDIA_VID_FRM_KEYFRAME; 800 800 } -
pjproject/trunk/pjmedia/src/test/test.h
r3667 r4873 24 24 #include <pjlib.h> 25 25 26 #define HAS_VID_DEV_TEST PJMEDIA_HAS_VIDEO27 #define HAS_VID_PORT_TEST PJMEDIA_HAS_VIDEO26 #define HAS_VID_DEV_TEST 0 // PJMEDIA_HAS_VIDEO 27 #define HAS_VID_PORT_TEST 0 // PJMEDIA_HAS_VIDEO 28 28 #define HAS_VID_CODEC_TEST PJMEDIA_HAS_VIDEO 29 #define HAS_SDP_NEG_TEST 130 #define HAS_JBUF_TEST 131 #define HAS_MIPS_TEST 132 #define HAS_CODEC_VECTOR_TEST 129 #define HAS_SDP_NEG_TEST 0 30 #define HAS_JBUF_TEST 0 31 #define HAS_MIPS_TEST 0 32 #define HAS_CODEC_VECTOR_TEST 0 33 33 34 34 int session_test(void);
Note: See TracChangeset
for help on using the changeset viewer.