Make my patch less noisy.
Tobias Frost
1 year, 3 months ago
297 | 297 | + if ( sps[ new_sps->seq_parameter_set_id ] ) { |
298 | 298 | + auto old_sps = sps[ new_sps->seq_parameter_set_id ].get(); |
299 | 299 | + if ( *old_sps == *new_sps ) { |
300 | + printf(" **** keeping sps *****\n"); | |
300 | + // printf(" **** keeping sps *****\n"); | |
301 | 301 | + // the new sps is identical to the old one, so no replacing needed. |
302 | 302 | + // however, reference pics and long-term reference pics might need updating. |
303 | 303 | + old_sps->ref_pic_sets = new_sps->ref_pic_sets; |
306 | 306 | + 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)); |
307 | 307 | + return DE265_OK; |
308 | 308 | + } |
309 | + printf(" **** replacing sps *****\n"); | |
309 | + //printf(" **** replacing sps *****\n"); | |
310 | 310 | + |
311 | 311 | + } |
312 | 312 | + |