Codebase list libde265 / d608dfd
Make my patch less noisy. Tobias Frost 1 year, 3 months ago
1 changed file(s) with 2 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
297297 + if ( sps[ new_sps->seq_parameter_set_id ] ) {
298298 + auto old_sps = sps[ new_sps->seq_parameter_set_id ].get();
299299 + if ( *old_sps == *new_sps ) {
300 + printf(" **** keeping sps *****\n");
300 + // printf(" **** keeping sps *****\n");
301301 + // the new sps is identical to the old one, so no replacing needed.
302302 + // however, reference pics and long-term reference pics might need updating.
303303 + old_sps->ref_pic_sets = new_sps->ref_pic_sets;
306306 + memcpy(old_sps->used_by_curr_pic_lt_sps_flag, new_sps->used_by_curr_pic_lt_sps_flag, sizeof(old_sps->used_by_curr_pic_lt_sps_flag));
307307 + return DE265_OK;
308308 + }
309 + printf(" **** replacing sps *****\n");
309 + //printf(" **** replacing sps *****\n");
310310 +
311311 + }
312312 +