There is anIDR interval setting in the encoding parameter.
1 100 200 /* 1(reserved) , N (# of frames in between I frames), IDR interval. */
For each the IDR frame, the H.264 encoder will force to add the SPS/PPS data.
For more complete information about compiler optimizations, see our Optimization Notice.