avcodec/h264_ps: Validate num_units_in_tick/time_scale before setting them in the...