Changeset 6038
- Timestamp:
- Jul 14, 2019 5:21:16 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjmedia/src/pjmedia-codec/vid_toolbox.m
r5793 r6038 22 22 #include <pjmedia/errno.h> 23 23 #include <pj/log.h> 24 #include <pj/math.h> 24 25 25 26 #if defined(PJMEDIA_HAS_VID_TOOLBOX_CODEC) && \ … … 1229 1230 if (nalu_type == 7) { 1230 1231 /* NALU type 7 is the SPS parameter NALU */ 1231 vtool_data->dec_sps_size = frm_size - code_size; 1232 vtool_data->dec_sps_size = PJ_MIN(frm_size - code_size, 1233 sizeof(vtool_data->dec_sps)); 1232 1234 pj_memcpy(vtool_data->dec_sps, &start[code_size], 1233 1235 vtool_data->dec_sps_size); 1234 1236 } else if (nalu_type == 8) { 1235 1237 /* NALU type 8 is the PPS parameter NALU */ 1236 vtool_data->dec_pps_size = frm_size - code_size; 1238 vtool_data->dec_pps_size = PJ_MIN(frm_size - code_size, 1239 sizeof(vtool_data->dec_pps)); 1237 1240 pj_memcpy(vtool_data->dec_pps, &start[code_size], 1238 1241 vtool_data->dec_pps_size);
Note: See TracChangeset
for help on using the changeset viewer.